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 652833a9790b361b8dd13679ba3ffe730b7ee5aa
parent cb62a6a8a832e21e70fee677cb5d536d6ca7ccb7
Author: Joris Vink <joris@coders.se>
Date:   Sun,  4 Dec 2016 16:49:42 +0100

set worker_active_connections to 0 always.

fixes a bug where if a worker died it contained garbled data...

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

diff --git a/src/worker.c b/src/worker.c @@ -40,6 +40,8 @@ #include "tasks.h" #endif +#define WORKER_DEBUG + #if defined(WORKER_DEBUG) #define worker_debug(fmt, ...) printf(fmt, ##__VA_ARGS__) #else @@ -317,6 +319,8 @@ kore_worker_entry(struct kore_worker *kw) had_lock = 0; next_lock = 0; idle_check = 0; + worker_active_connections = 0; + kore_platform_event_init(); kore_msg_worker_init();