Skip to content

Commit 7e8bf58

Browse files
John Simonsankithkonda
John Simons
authored andcommitted
1 parent d501da5 commit 7e8bf58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Renci.SshNet/Session.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1769,8 +1769,8 @@ private void SocketDisconnectAndDispose()
17691769
//
17701770
// This may result in a SocketException (eg. An existing connection was forcibly
17711771
// closed by the remote host) which we'll log and ignore as it means the socket
1772-
// was already shut down.
1773-
_socket.Shutdown(SocketShutdown.Send);
1772+
// was already shut down
1773+
_socket.Shutdown(SocketShutdown.Both);
17741774
}
17751775
catch (SocketException ex)
17761776
{

0 commit comments

Comments
 (0)