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 1f938eb81827ab4c3b80ee6d8207797078bbe8bc
parent 29fa49ba83143acf448fd36d905c3f2a704d13aa
Author: Joris Vink <joris@coders.se>
Date:   Mon, 15 Jul 2013 11:12:05 +0200

Only release accept lock when required.

Diffstat:
src/worker.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/worker.c b/src/worker.c @@ -222,7 +222,7 @@ kore_worker_entry(struct kore_worker *kw) kore_platform_event_wait(); if (((worker->accepted >= worker->accept_treshold) || - (worker_active_connections < worker_max_connections)) && + (worker_active_connections >= worker_max_connections)) && worker->has_lock) { worker->accepted = 0; kore_worker_acceptlock_release();