Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CanAcceptConnections.WaitOne limits the new connections rate #47

Open
serar-wp opened this issue Aug 1, 2020 · 0 comments
Open

CanAcceptConnections.WaitOne limits the new connections rate #47

serar-wp opened this issue Aug 1, 2020 · 0 comments

Comments

@serar-wp
Copy link

serar-wp commented Aug 1, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant