mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-29 15:11:12 +08:00
Do not set DontLinger socket option.
This commit is contained in:
@@ -23,7 +23,6 @@ namespace Renci.SshNet
|
||||
var ep = new IPEndPoint(addr, (int) BoundPort);
|
||||
|
||||
_listener = new Socket(ep.AddressFamily, SocketType.Stream, ProtocolType.Tcp) {Blocking = true};
|
||||
_listener.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.DontLinger, true);
|
||||
_listener.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, true);
|
||||
_listener.Bind(ep);
|
||||
_listener.Listen(1);
|
||||
|
||||
Reference in New Issue
Block a user