Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SftpClient: Stale file handle #1466

Open
blackwindowtech opened this issue Aug 8, 2024 · 0 comments
Open

SftpClient: Stale file handle #1466

blackwindowtech opened this issue Aug 8, 2024 · 0 comments

Comments

@blackwindowtech
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant