Users of my software (ShareX) keep creating issues telling upload speeds slow with SFTP.
Example issue reports:
https://github.com/ShareX/ShareX/issues/136
https://code.google.com/p/sharex/issues/detail?id=284
I don't have SFTP server to test but i checked codes here:
https://dl.dropboxusercontent.com/u/14076298/ShareX/2014/05/Z7uBld1vzn.mp4
Stream using 4kb buffer size and it can be the reason why it is slow.
ShareX have customizeable buffer size setting and i'm setting SftpClient.BufferSize but SftpFileStream class not using BufferSize property.
Codes:
https://dl.dropboxusercontent.com/u/14076298/ShareX/2014/05/KUWYZKYsB9.png
https://dl.dropboxusercontent.com/u/14076298/ShareX/2014/05/BXfmN3cufj.png
TransferData handling progress report, calculating speed etc. and using buffer size set in settings. All other ftp, http request uploads etc. using this same method and those uploads don't have upload speed problem so only one things remains, SftpFileStream can be causing this upload speed problem i guess?
Example issue reports:
https://github.com/ShareX/ShareX/issues/136
https://code.google.com/p/sharex/issues/detail?id=284
I don't have SFTP server to test but i checked codes here:
https://dl.dropboxusercontent.com/u/14076298/ShareX/2014/05/Z7uBld1vzn.mp4
Stream using 4kb buffer size and it can be the reason why it is slow.
ShareX have customizeable buffer size setting and i'm setting SftpClient.BufferSize but SftpFileStream class not using BufferSize property.
Codes:
https://dl.dropboxusercontent.com/u/14076298/ShareX/2014/05/KUWYZKYsB9.png
https://dl.dropboxusercontent.com/u/14076298/ShareX/2014/05/BXfmN3cufj.png
TransferData handling progress report, calculating speed etc. and using buffer size set in settings. All other ftp, http request uploads etc. using this same method and those uploads don't have upload speed problem so only one things remains, SftpFileStream can be causing this upload speed problem i guess?