This project has moved and is read-only. For the latest updates, please go here.

Resolve zero length file creation issue

Nov 26, 2013 at 3:03 PM
Is it possible to learn more about this fix?
Nov 28, 2013 at 6:32 AM
There were a couple of issues that were causing this.

The primary issue was the static temporary variable in the Tamir SharpSSH Buffer class. This caused buffer overruns, authentication issues, session drop outs, unexpected EOFs, etc, in multi-threaded implementations on send and receive.

IO exceptions would be thrown up from the Tamir SharpSSH framework to the Blogical adapter and Blogical.Shared.Adapters.Sftp.SharpSsh.Put(Stream, String) would try reconnecting and sending the stream again without resetting the stream position back to zero. Hence a zero length file being written.

Hope this answers your question.