Skip to content

Commit

Permalink
Revert back to using SocketShutdown.Send in an attempt to stabilize t…
Browse files Browse the repository at this point in the history
…ests.
  • Loading branch information
drieseng committed Dec 27, 2020
1 parent dc9c637 commit a1e4e04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Renci.SshNet/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1837,10 +1837,7 @@ private void SocketDisconnectAndDispose()
// This may result in a SocketException (eg. An existing connection was forcibly
// closed by the remote host) which we'll log and ignore as it means the socket
// was already shut down.
//
// We use SocketShutdown.Both instead of SocketShutdown.Send as a workaround to a
// .NET Core issue on Linux & Mac OS X.
_socket.Shutdown(SocketShutdown.Both);
_socket.Shutdown(SocketShutdown.Send);
}
catch (SocketException ex)
{
Expand Down

0 comments on commit a1e4e04

Please sign in to comment.