Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Renci.SshNet.Common.SshOperationTimeoutException

$
0
0
I'm getting the same error when calling SftpClient.UploadFile() to upload a large-ish file (~600Mb) to a FreeBSD UNIX file server, it fails after transferring half the file (several minutes later).
I'm using SSH.NET 2014.4.6-beta2.
Maybe I should be using the asynchronous upload, sftp.BeginUploadFile(). Any thoughts/suggestions?
Renci.SshNet.Common.SshOperationTimeoutException: Session operation has timed out 
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) 
at Renci.SshNet.Session.Renci.SshNet.ISession.WaitOnHandle(WaitHandle waitHandle) 
at Renci.SshNet.Channels.Channel.WaitOnHandle(WaitHandle waitHandle) at Renci.SshNet.Channels.Channel.GetDataLengthThatCanBeSentInMessage(Int32 messageLength) 
at Renci.SshNet.Channels.Channel.SendMessage(ChannelDataMessage message) 
at Renci.SshNet.Channels.Channel.SendData(Byte[] data) 
at Renci.SshNet.SubsystemSession.SendData(Byte[] data) 
at Renci.SshNet.Sftp.SftpSession.SendMessage(SftpMessage sftpMessage) 
at Renci.SshNet.Sftp.SftpSession.SendRequest(SftpRequest request) 
at Renci.SshNet.Sftp.SftpSession.RequestWrite(Byte[] handle, UInt64 offset, Byte[] data, AutoResetEvent wait, Action`1 writeCompleted) 
at Renci.SshNet.SftpClient.InternalUploadFile(Stream input, String path, Flags flags, SftpUploadAsyncResult asyncResult, Action`1 uploadCallback) 
at Renci.SshNet.SftpClient.UploadFile(Stream input, String path, Boolean canOverride, Action`1 uploadCallback) 
at Renci.SshNet.SftpClient.UploadFile(Stream input, String path, Action`1 uploadCallback) 
at Centauri.Management.UnixInterfaceManager.Transfer(String sourceFilePath, String destinationFilePath) in C:\XXXX\UnixInterfaceManager.cs:line 183 

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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