SSH.NET
SSH.NET copied to clipboard
SftpClient: Stale file handle
Randomly when writing a large string (around 40 MB) we get this error:
Renci.SshNet.Common.SshException: Stale file handle at Renci.SshNet.Sftp.SftpSession.RequestClose(Byte[] handle) at Renci.SshNet.Sftp.SftpFileStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at System.IO.StreamWriter.CloseStreamFromDispose(Boolean disposing) at System.IO.StreamWriter.Dispose(Boolean disposing) at System.IO.TextWriter.Dispose() at Renci.SshNet.SftpClient.WriteAllText(String path, String contents)