SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

SftpClient: Stale file handle

Open blackwindowtech opened this issue 1 year ago • 0 comments

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)

blackwindowtech avatar Aug 08 '24 15:08 blackwindowtech