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

.Disconnect hangs the thread on MacOS #686

Closed
delebru opened this issue May 26, 2020 · 6 comments
Closed

.Disconnect hangs the thread on MacOS #686

delebru opened this issue May 26, 2020 · 6 comments
Assignees

Comments

@delebru
Copy link

delebru commented May 26, 2020

var ssh = new SshClient(hostName, username, password);
ssh.Connect();
var command = ssh.RunCommand("whoami");
Console.WriteLine($"Command result: {command.Result}");
ssh.Disconnect();
ssh.Dispose();

The above code runs fine on Windows but hangs on MacOS. It will connect and run the remote command just fine, but it never gets past the .Disconnect. If there is no .Disconnect, it will hang on .Dispose.

Tested with .NET Core 2.2 and 3.1 and v2016.1.0.

Downgrading to v2013.4.7 fixes the issue.

@marcelcandidoferreira
Copy link

Same issue here

@scottpidzarko
Copy link

See #355

Does the issue occur on the latest build on develop?

@delebru
Copy link
Author

delebru commented May 27, 2020

@scottpidzarko thanks for the reference! Didn't find an existing issue on my terrible search... I'd be happy to test it, where can I grab the latest develop build? I'm not being able to compile from source.

@drieseng
Copy link
Member

@delebru Please try 2020.0.0-beta1, and let me know it that fixed the issue for you.

@delebru
Copy link
Author

delebru commented Jun 28, 2020

@drieseng works fine on 2020.0.0-beta1

@drieseng drieseng added this to the 2020.0.0-beta1 milestone Jun 28, 2020
@drieseng drieseng self-assigned this Jun 28, 2020
@drieseng
Copy link
Member

@delebru Thanks for the feedback!

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

4 participants