Improve client timeout hanlding.

Do not run the idle timer check for client if it still has a request
queued up. Otherwise if the worker process is very busy you might hit
the timeout even though the client sent us a full request which was queued.
This commit is contained in:
Joris Vink 2018-03-14 13:35:47 +01:00
parent ff21fd330f
commit c55036bfec
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ kore_connection_check_timeout(u_int64_t now)
continue;
if (!(c->flags & CONN_IDLE_TIMER_ACT))
continue;
if (!TAILQ_EMPTY(&c->http_requests))
continue;
kore_connection_check_idletimer(now, c);
}
}