SimpleSockets icon indicating copy to clipboard operation
SimpleSockets copied to clipboard

CanAcceptConnections.WaitOne limits the new connections rate

Open serar-wp opened this issue 4 years ago • 0 comments

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?

serar-wp avatar Aug 01 '20 18:08 serar-wp