Skip to content

CanAcceptConnections.WaitOne limits the new connections rate #47

Description

@serar-wp

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions