mirror of https://git.kore.io/kore.git
Only call http_check_timeout on established clients.
This commit is contained in:
parent
068b295427
commit
0eab72f4cd
|
@ -185,10 +185,12 @@ kore_connection_check_timeout(u_int64_t now)
|
||||||
if (c->proto == CONN_PROTO_MSG)
|
if (c->proto == CONN_PROTO_MSG)
|
||||||
continue;
|
continue;
|
||||||
#if !defined(KORE_NO_HTTP)
|
#if !defined(KORE_NO_HTTP)
|
||||||
if (!http_check_timeout(c, now))
|
if (c->state == CONN_STATE_ESTABLISHED) {
|
||||||
continue;
|
if (!http_check_timeout(c, now))
|
||||||
if (!TAILQ_EMPTY(&c->http_requests))
|
continue;
|
||||||
continue;
|
if (!TAILQ_EMPTY(&c->http_requests))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (c->flags & CONN_IDLE_TIMER_ACT)
|
if (c->flags & CONN_IDLE_TIMER_ACT)
|
||||||
kore_connection_check_idletimer(now, c);
|
kore_connection_check_idletimer(now, c);
|
||||||
|
|
Loading…
Reference in New Issue