-
-
Notifications
You must be signed in to change notification settings - Fork 940
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
Bugfix Dispose - Avoid sending message when session is not connected. #1096
Conversation
When connection is disconnected from the server for unexpected reasons, attempting to dispose to forwarded port will throw exception because it believes the session is still connected.
@drieseng Is there any change I can make to help move this forward? I've added a test case which covers the issue. |
@shanwayne We're really close to merging #1109 PR which will provide native support for .NET 6 and 7. |
In SSH.NET/src/Renci.SshNet/ForwardedPortDynamic.NET.cs Lines 207 to 219 in 89079bd
Do you know if this can be related to this PR? |
@WojciechNagorski It could be similar but different. In |
@shanwayne Can I know why did you close this issue? Did you find the problem in the library or maybe on the server side? I'm waiting for more permissions for this project and intend to reactivate this project once I get them. |
@WojciechNagorski This is still an issue. I had to move on unfortunately and there was a more serious issue regarding not properly handling connections that prevented using the library. So just cleaning up. |
Any chance this pull request still can be merged? I'm hitting this exact issue on 2024.0.0 and this PR seems to fix it. |
@shanwayne @jwfx You should ask @Rob-Hague. I don't have time for this project for the next month. |
@Rob-Hague I reopened this PR, if you want you can close it. |
When connection is disconnected from the server for unexpected reasons, attempting to dispose the forwarded port will throw exception because it believes the session is still connected and will try and send a message.