sshnet / SSH.NET

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
http://sshnet.github.io/SSH.NET/
MIT License
3.88k stars 919 forks source link

Software on Linux becomes blocked when the connection is lost during an upload #1308

Open dj-Query opened 4 months ago

dj-Query commented 4 months ago

Hi all, I'm having an issue when uploading a large file and the connection is lost. On the O.S. Windows my software throws an exception as I expect, but this behavior does not occur on O.S Linux. Using the logs, I can see that after using UploadFile everything freezes and no matter how I try to throw an exception, it does not happen. I have tried using the OperationalTimeout and the BeginUploadFile. The BeginUploadFile function seems to work, but the moment I use the EndUploadFile function everything freezes. The OperationalTimeout does not work. I hope you can help me solve the situation.

Regards.

Rob-Hague commented 4 months ago

This sounds like #957, although I wouldn't know why there is a difference between Windows and Linux.