Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: Files are getting truncated when uploading to the SSH server. [1466]

$
0
0
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 **

Hmm,
Yea, it might be something to do with network drive then.
Can you do this test:
Download file completely into some internal memory buffer and see its size in both cases, when its local and when it stored on network drive.

Thanks,
Oleg


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>