소스 검색

Revert back to using SocketShutdown.Send in an attempt to stabilize tests.

drieseng 4 년 전
부모
커밋
a1e4e04e04
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      src/Renci.SshNet/Session.cs

+ 1 - 4
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)
                             {