This project is read-only.

SftpClient _socket.Disconnect vs. _socket.DisconnectAsync - VanDyke Sftp and Titan Sftp Server

May 31, 2014 at 7:25 PM
I am developing an app using sshnet and have run into a problem when I try a different sftp server. I developed the app using VanDyke Sftp server and everything works great. However, when I switched to Titan, the app hangs on the SftpClient _socket.Disconnect(true).

I have found if I use _socket.Disconnect(false) or _socket.DisconnectAsync(SocketAsyncEventArgs e) it works on Titan.

I have try multiple ways to catch exceptions and it does not seem to throw any.

Is this a viable workaround?

Thanks for the great work!!!