From 4a72877f4edb0839902627f79117c21f297d5ec2 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Thu, 6 Oct 2016 16:50:02 +0200 Subject: [PATCH] count active connections properly --- src/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connection.c b/src/connection.c index 0257051..6a5c27d 100644 --- 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