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 917 forks source link

Fix CancelAsync Cause Deadlock #1345

Closed zeotuan closed 3 months ago

zeotuan commented 3 months ago

Fix CancelAsync causing deadlocking:

it now signal WaitHandle of Cancelled event after sending SIGTERM/SIGKILL signal to try to abort the request.

close https://github.com/sshnet/SSH.NET/issues/1147 and close https://github.com/sshnet/SSH.NET/issues/1023