mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
If we hit the accept threshold, unlock worker.
This commit is contained in:
parent
8be316ac0c
commit
1ac131c48f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user