Increase backlog to 5.

This commit is contained in:
Gert Driesen
2014-11-16 14:52:59 +00:00
parent 861e291f44
commit 8e2ea99dd9
@@ -30,7 +30,7 @@ namespace Renci.SshNet
_listener.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.DontLinger, true);
_listener.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, true);
_listener.Bind(ep);
_listener.Listen(1);
_listener.Listen(5);
Session.ErrorOccured += Session_ErrorOccured;
Session.Disconnected += Session_Disconnected;