If we hit the accept threshold, unlock worker.

This commit is contained in:
Joris Vink 2018-10-22 09:01:05 +02:00
parent 8be316ac0c
commit 1ac131c48f
1 changed files with 3 additions and 1 deletions

View File

@ -463,8 +463,10 @@ kore_listener_accept(void *arg, int error)
while (worker_active_connections < worker_max_connections) {
if (worker_accept_threshold != 0 &&
accepted >= worker_accept_threshold)
accepted >= worker_accept_threshold) {
kore_worker_make_busy();
break;
}
if (!kore_connection_accept(l, &c))
break;