-
-
Notifications
You must be signed in to change notification settings - Fork 946
SshClient.Dispose is throwing exception when SSH session gets disconnected unexpectedely #96
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
Comments
This should be fixed in the develop branch. |
@drieseng , Can we utilize the CI appveyor build so that it automatically publishes the output whenever the code changes so that it can be downloaded and used with less effort? For example, the build can publish the nuget package to any one of these repositories:
Thank you! :) |
Is there a workaround for this, or do we still need to build from the development branch? |
I'm gonna try to ship a new beta this weekend. |
Experiencing this issue on 2016.0, a fix would be great 👍 |
This should be fixed in version 2016.1.0-beta1. |
Thanks! |
@josephearl Can you confirm that this issue is fixed in 2016.1.0-beta1? |
@drieseng yes works for me |
Does this release get out of beta soon? |
The disposal of an SshClient instance could end throwing an exception when the SSH Session gets disconnected by the remote host.
A quick look into the code shows that even if the Dispose methods calls Disconnect internally and doesn't have exception handling (https://github.com/sshnet/SSH.NET/blob/develop/src/Renci.SshNet/BaseClient.cs#L339) , there is always a null check over the SshSession (https://github.com/sshnet/SSH.NET/blob/develop/src/Renci.SshNet/BaseClient.cs#L225-L246) to prevent any unwanted NullReferenceException. However, something is still going on when the session is remotely disconnected and the SshClient is tried to be disposed after that.
The text was updated successfully, but these errors were encountered: