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

In certain circumstances, SshClient.Disconnect may never return. #1552

Open
carl-andersson-at-westermo opened this issue Dec 6, 2024 · 0 comments

Comments

@carl-andersson-at-westermo

Observed when doing manual SSH-jumping (I.e using SSH.NET to create an SSH shell in a remote device, then using that device to SSH to another device, and then repeating the procedure in order to reach a third device, the error occurs when the jump to reach this third device fails). When attempting to disconnect the SSH session, it seems to get eternally stuck on the WaitOne() call in:

if (_messageListenerCompleted != null)

This can be avoided by raising a Task.Run that fires-and-forgets, of course, but it is less than ideal that it seems to get stuck in this way.

This has not been observed outside of situations where the secondary connection fails, and has otherwise worked fine.

Version: SSH.NET 2024.2.0
Runtime: .NET 9.0.100
OS: Windows, Build 10.00.22621

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