From a1e4e04e044673398362d20d79f61bc0ff318522 Mon Sep 17 00:00:00 2001 From: drieseng Date: Sun, 27 Dec 2020 10:37:30 +0100 Subject: [PATCH] Revert back to using SocketShutdown.Send in an attempt to stabilize tests. --- src/Renci.SshNet/Session.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Renci.SshNet/Session.cs b/src/Renci.SshNet/Session.cs index af7a7a74..1f657e1e 100644 --- a/src/Renci.SshNet/Session.cs +++ b/src/Renci.SshNet/Session.cs @@ -1837,10 +1837,7 @@ namespace Renci.SshNet // 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) {