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

scaprile Jul 5, 2022
Collaborator

@steteb
Comment options

@scaprile
Comment options

scaprile Jul 6, 2022
Collaborator

@steteb
Comment options

@cpq
Comment options

cpq Jul 7, 2022
Maintainer

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