1

Closed

SSH.NET hangs when SftpClient is disposed

description

SftpClient is not returning from the Dispose method. This issue is happening when the StfpClient has tried to connect and a SshOperationTimeoutException has occurred. The dispose is hanging when it calls Session.Dispose, code snippet:

if (this._messageListenerCompleted != null)
{
                    //  Wait for socket to be closed and for task to complete before disposing a task
                    this._messageListenerCompleted.WaitOne();
                    this._messageListenerCompleted.Dispose();
                    this._messageListenerCompleted = null;
}

The program is stuck on line: this._messageListenerCompleted.WaitOne();

Any fixes or workarounds for this?
Closed Dec 5, 2012 at 9:39 PM by TomCornelius
Hi, this is the issue tracker for the codeplex site. You may want to post your issue on the individual project's issue tracker page.

comments