bferrenq opened a new issue, #468: URL: https://github.com/apache/mina-sshd/issues/468
### Version 2.11.0 ### Bug description Hello, We are using Mina to download and upload files to various sftp servers. We have noticed that while fetching some files with a size >200 Mb to a precise sftp server, content of the file is bigger than what is on the server. For a text file we can see unexpected duplicated data inside. By narrowing the problem, and using [SftpClient.read](https://github.com/apache/mina-sshd/blob/master/sshd-sftp/src/main/java/org/apache/sshd/sftp/client/SftpClient.java#L908) with a bigger buffersize than the default value, downloaded file is the same as the source! We would like to understand how to properly configure above buffersize or any parameter to have expected behavior, so far we use most of the default settings. Note that we could not reproduce yet such issue on other sftp servers, please let me know if you need more information! ### Actual behavior Content of the file is bigger than what is on the server. ### Expected behavior Content of the file is the same than what is on the server. ### Relevant log output ```Shell Server version string: SSH-2.0-dropbear [SERVER] SSH_MSG_CHANNEL_OPEN_CONFIRMATION sender=0, window-size=3145728, packet-size=32648 ``` ### Other information _No response_ -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
