Skip to content

Commit 1bab13b

Browse files
committed
Add comment.
1 parent e9807ef commit 1bab13b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Renci.SshNet/Session.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,6 +1868,10 @@ private void SocketDisconnectAndDispose()
18681868
{
18691869
// interrupt any pending reads; should be done outside of socket read lock as we
18701870
// 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
18711875
_socket.Shutdown(SocketShutdown.Send);
18721876

18731877
#if FEATURE_SOCKET_POLL

0 commit comments

Comments
 (0)