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 a1e6588085e28a8f79ed8deb6e7dc61ebfd81be4
parent 9184257d97708c7ad4ed7e2179d887a35701c0bb
Author: Joris Vink <joris@coders.se>
Date:   Fri, 21 Nov 2014 16:38:23 +0100

Repopulate now when we are doing idle timer checks.

Otherwise in a weird scenario the idle timer could
be started with a more recent time then the time we
test against causing a connection to disconnect
before its idle timer was over.

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

diff --git a/src/worker.c b/src/worker.c @@ -297,6 +297,7 @@ kore_worker_entry(struct kore_worker *kw) if ((now - idle_check) >= 10000) { idle_check = now; + now = kore_time_ms(); TAILQ_FOREACH(c, &worker_clients, list) { if (c->proto == CONN_PROTO_SPDY && c->idle_timer.length == 0 &&