Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

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

$
0
0
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!!!

--jscott

Viewing all articles
Browse latest Browse all 1729

Trending Articles