Skip to content

Accept connections from only one client #1619

Discussion options

You must be logged in to vote

In the MG_EV_ACCEPT handler, traverse c->mgr->conns, and if you see a client already connected, mg_error().

Why? Is it a free RAM issue?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@scaprile
Comment options

@steteb
Comment options

@scaprile
Comment options

@steteb
Comment options

@cpq
Comment options

Answer selected by cpq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants