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 4a72877f4edb0839902627f79117c21f297d5ec2
parent c071d64bdddacbe1b69d238e14994d666a86f7cf
Author: Joris Vink <joris@coders.se>
Date:   Thu,  6 Oct 2016 16:50:02 +0200

count active connections properly

Diffstat:
src/connection.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/connection.c b/src/connection.c @@ -141,6 +141,7 @@ kore_connection_accept(struct listener *listener, struct connection **out) #endif kore_connection_start_idletimer(c); + worker_active_connections++; *out = c; return (KORE_RESULT_OK); @@ -356,6 +357,7 @@ kore_connection_remove(struct connection *c) } kore_pool_put(&connection_pool, c); + worker_active_connections--; } void