Hi,
I noticed unexpected behaviour, when I was sending a number of files to the SSH server, each file with a size approx. equal to 35 kB.
Every file on the destination machine was truncated to 16384 kB.
When i set BufferSize property to 32716 on the SftpClient object and then called the UploadFile method on that object, every file transferred to the SSH server was truncated to 32716 kB.
I'm using OpenSSH server v. 6.1p1.
This has not happened, (not so often at least) when I ran the library in the debug mode. Perhaps when the runtime hits the breakpoint, any particular thread has a chance to finish which is not the case in the release mode.
I'm not sure what else I could provide to help you trace the problem.
Can I have some advice on this? Perhaps I'm using wrong patter to send files to the remote server.
Regards,
Martin.
Comments: ** Comment from web user: olegkap **
I noticed unexpected behaviour, when I was sending a number of files to the SSH server, each file with a size approx. equal to 35 kB.
Every file on the destination machine was truncated to 16384 kB.
When i set BufferSize property to 32716 on the SftpClient object and then called the UploadFile method on that object, every file transferred to the SSH server was truncated to 32716 kB.
I'm using OpenSSH server v. 6.1p1.
This has not happened, (not so often at least) when I ran the library in the debug mode. Perhaps when the runtime hits the breakpoint, any particular thread has a chance to finish which is not the case in the release mode.
I'm not sure what else I could provide to help you trace the problem.
Can I have some advice on this? Perhaps I'm using wrong patter to send files to the remote server.
Regards,
Martin.
Comments: ** Comment from web user: olegkap **
Hi,
Can you provide a code example that you use to upload files?
Just want to know what path to check since it can be done in few different ways.
Just as a note, one of the last changes I did was to wait for all SFTP requests to be finished before continue, so I guess I just wondering if thats could be it and I am missing something.
Thanks,
Oleg