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

New Post: Port-Forwardings crashes when unable to ship data

$
0
0
I followed the stacktrace to Renci.SshNet.Channels.ChannelDirectTcpip.InternalSocketSend

And change it from:
        partial void InternalSocketSend(byte[] data)
        {
                this._socket.Send(data, 0, data.Length, SocketFlags.None);
        }
to
        partial void InternalSocketSend(byte[] data)
        {
            try
            {
                this._socket.Send(data, 0, data.Length, SocketFlags.None);
            }
            catch (Exception exp)
            {
                Console.WriteLine("InternalSocketSend Exception: " + exp.Message + "\n" + exp.StackTrace);
            }
        }
Now the forwardings do not crash anymore in my use case.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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