tomaswolf commented on issue #764: URL: https://github.com/apache/mina-sshd/issues/764#issuecomment-2976205423
Get a network trace using something like WireShark. When you get the exception, examine the trace. Try to determine how frequently the client sends messages. For uploading, I'd expect to see large messages sent by the client (the data), and short messages being received from the server (the SFTP ACKs). You won't be able to inspect the message contents since it'll be encrypted, but you can analyze the timings. Is there anything suspicious with the timings of these messages? No ACKs being received or coming in slower and slower, or the client sending messages slower and slower? Does this occur only with that Tectia server, or also with other servers, for instance OpenSSH? On a closer look another relevant timeout is [`CoreModuleProperties.NIO2_MIN_WRITE_TIMEOUT`](https://github.com/apache/mina-sshd/blob/f0608d7b3/sshd-core/src/main/java/org/apache/sshd/core/CoreModuleProperties.java#L373). This is the timeout for a single NIO2 write operation; by default 30 seconds. If the single buffer cannot be written by NIO2 within that time, you might get the exception you've shown above: ``` ... Caused by: java.nio.channels.InterruptedByTimeoutException at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl$2.run(UnixAsynchronousSocketChannelImpl.java:661) ~[?:?] ... ``` A single write should never take that long. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org