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

Fix hang/unhandled exception in SshCommand upon disconnect #1565

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

Rob-Hague
Copy link
Collaborator

  • Swallow exceptions occurring in the cancellation/timeout callback (due to disconnect) which would result in crash due to UnhandledException
  • Always complete the Task when cancelling, even when such an exception occurs, in order to avoid the Task never completing. In the case of client disconnect, it would still wait until timeout. This is not ideal since we should be able to complete right away, but at least it's no longer an indefinite hang

contributes to #1561

@WojciechNagorski WojciechNagorski merged commit 6d94e97 into sshnet:develop Jan 3, 2025
3 checks passed
@Rob-Hague Rob-Hague deleted the cmd-unhandledex branch January 3, 2025 10:20
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

Successfully merging this pull request may close these issues.

2 participants