commit 1ac131c48fcfdacd266f382dbd915a7a1dfcd661
parent 8be316ac0c91e20f35d5526269dbbdfe625dd1a8
Author: Joris Vink <joris@coders.se>
Date: Mon, 22 Oct 2018 09:01:05 +0200
If we hit the accept threshold, unlock worker.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/kore.c b/src/kore.c
@@ -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;