mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 09:15:47 +00:00
Revert back to using SocketShutdown.Send in an attempt to stabilize tests.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user