Skip to content

Fix #1275. Hung Dispose() caused by infinite socket timeout#1280

Merged
WojciechNagorski merged 1 commit into
sshnet:developfrom
jkillingsworth:fix-hung-dispose
Dec 28, 2023
Merged

Fix #1275. Hung Dispose() caused by infinite socket timeout#1280
WojciechNagorski merged 1 commit into
sshnet:developfrom
jkillingsworth:fix-hung-dispose

Conversation

@jkillingsworth

@jkillingsworth jkillingsworth commented Dec 23, 2023

Copy link
Copy Markdown
Contributor

This is a fix for the issue described in #1275. This fix is based on a suggestion by @Rob-Hague in #1275 (comment).

Note that I have suppressed the S2222 warning. I believe this to be a false positive. I don't see any execution paths where the lock does not get released.

Co-authored-by: Rob Hague <rob.hague00@gmail.com>
@WojciechNagorski

Copy link
Copy Markdown
Collaborator

@Rob-Hague Can you make a review? It's your idea.

@Rob-Hague Rob-Hague left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@WojciechNagorski WojciechNagorski merged commit e7a64dd into sshnet:develop Dec 28, 2023
@WojciechNagorski WojciechNagorski added this to the 2023.0.1 milestone Dec 28, 2023
@jkillingsworth jkillingsworth deleted the fix-hung-dispose branch December 28, 2023 22:14
@WojciechNagorski

Copy link
Copy Markdown
Collaborator

The 2023.0.1 version has been released to Nuget: https://www.nuget.org/packages/SSH.NET/2023.0.1

@jkillingsworth

Copy link
Copy Markdown
Contributor Author

The 2023.0.1 version has been released to Nuget: https://www.nuget.org/packages/SSH.NET/2023.0.1

Thank you @WojciechNagorski!

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.

3 participants