tomaswolf commented on issue #293: URL: https://github.com/apache/mina-sshd/issues/293#issuecomment-1356404731
Partial problem cause: in the **SftpTransferTest**, the problem is the SFTP buffer size of 64kB in `testTransferIntegrityWithBufferLargerThanPacket`. That is 1kB more than the maximum the server will ever return; its setting for the maximum chunk to return is 63kB. This means the client fetches the missing 1kB synchronously, which makes transfer times explode to 120s when running this test locally on a CentOS 7 virtual machine, as opposed to about 14 seconds with the default SFTP buffer size. If the buffer size is 62kB, this test runs locally for me also fast in 10 seconds. I had pointed that out before in [SSHD-1287](https://issues.apache.org/jira/browse/SSHD-1287). There is clearly room for improvements there. This test is run twice during `SftpTransferTest`, and the overall run time of this test class is about 300s also locally on CentOS. This does not explain yet: * why there is no such problem on Windows, nor with Netty on Linux. (Or at least, why the time doesn't increase that much.) * why the overall time for that test increased from 120s in September to 300s in December. Some bisecting is needed. * where the far less marked but still noticeable difference in **ScpTest** comes from. -- 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