Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Closed Issue: Client disconnect not handled. [1264]

$
0
0
I am using the DLL to tunnel RDP traffic using port forwarding. When disconnecting a session, I was getting a null reference exception from the dll. Eventually discovered it was coming from the ChannelDirectTcip.NET40.cs code file in the InternalSocketSend method. The problem was that because of the disconnect, this._socket was null, but the server was still sending data, and the dll was trying to relay that data to the nonexistent connection. To hack around this, I added code in the ChannelDirectTcpip.cs code file in the OnData method, to check for a null this._socket. If not null, call “this.InternalSocketSend(data);” as usual. If “this._socket” is null, call “this.SendMessage(new ChannelEofMessage(this.RemoteChannelNumber));” instead. Probably not the best solution, but it works.
Comments: No response, assumed fixed

Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>