We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9807ef commit 1bab13bCopy full SHA for 1bab13b
src/Renci.SshNet/Session.cs
@@ -1868,6 +1868,10 @@ private void SocketDisconnectAndDispose()
1868
{
1869
// interrupt any pending reads; should be done outside of socket read lock as we
1870
// actually want shutdown the socket to make sure blocking reads are interrupted
1871
+ //
1872
+ // this may result in a SocketException (eg. An existing connection was forcibly
1873
+ // closed by the remote host) which we'll log and ignore as it means the socket
1874
+ // was already shut down
1875
_socket.Shutdown(SocketShutdown.Send);
1876
1877
#if FEATURE_SOCKET_POLL
0 commit comments