forked from mirrors/kore
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:
parent
ff21fd330f
commit
c55036bfec
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue