kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c80e1d3767569ce5a0702de5824b2cd9d2502ee8
parent 2aa4edb04edb365e3f8123a3c3bc562ee6ec9f20
Author: Joris Vink <joris@coders.se>
Date:   Fri,  1 Nov 2013 22:37:59 +0100

If there's only a single worker, do not block after accept treshold has been
reached

Diffstat:
src/worker.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/worker.c b/src/worker.c @@ -381,8 +381,10 @@ kore_worker_wait(int final) void kore_worker_acceptlock_release(void) { - if (worker_count == 1) + if (worker_count == 1) { + worker->accepted = 0; return; + } if (worker->has_lock != 1) return;