Skip to content

Commit a1e4e04

Browse files
committed
Revert back to using SocketShutdown.Send in an attempt to stabilize tests.
1 parent dc9c637 commit a1e4e04

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Renci.SshNet/Session.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,10 +1837,7 @@ private void SocketDisconnectAndDispose()
18371837
// This may result in a SocketException (eg. An existing connection was forcibly
18381838
// closed by the remote host) which we'll log and ignore as it means the socket
18391839
// was already shut down.
1840-
//
1841-
// We use SocketShutdown.Both instead of SocketShutdown.Send as a workaround to a
1842-
// .NET Core issue on Linux & Mac OS X.
1843-
_socket.Shutdown(SocketShutdown.Both);
1840+
_socket.Shutdown(SocketShutdown.Send);
18441841
}
18451842
catch (SocketException ex)
18461843
{

0 commit comments

Comments
 (0)