Skip to content
Snippets Groups Projects
Commit 38fde64d authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix max concurrent connections limit

broken in commit d98359ab

It'd send a 429 error, but keep accepting and processing client
requests, thus not really limiting the concurrent clients (from the same
IP) ever.
parent 8fe9b03c
No related branches found
No related tags found
No related merge requests found
Pipeline #9008 passed
......@@ -6913,6 +6913,7 @@ void http_session_thread(void* arg)
lprintf(LOG_NOTICE, "%04d %s [%s] !Maximum concurrent connections (%u) exceeded"
, socket, session.client.protocol, session.host_ip, startup->max_concurrent_connections);
send_error(&session, __LINE__, error_429);
session.finished = true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment