SimpleSockets
SimpleSockets copied to clipboard
CanAcceptConnections.WaitOne limits the new connections rate
Hello, I'm not really sure if this can be considered as a bug, but if I test the connection rate performance, after 209 connection without any wait, the server starts rejecting new connections.
In line 57 SimpleSocketTcpListener.cs, if you comment out "CanAcceptConnections.WaitOne();" the server happily accepts 15K new connections. Is there a better way to handle CanAcceptConnections functionality?