expand previous commit further, check proto as well.

This commit is contained in:
Joris Vink 2019-11-04 07:23:21 +01:00
parent 0eab72f4cd
commit 68ce436fa7
1 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,8 @@ kore_connection_check_timeout(u_int64_t now)
if (c->proto == CONN_PROTO_MSG)
continue;
#if !defined(KORE_NO_HTTP)
if (c->state == CONN_STATE_ESTABLISHED) {
if (c->state == CONN_STATE_ESTABLISHED &&
c->proto == CONN_PROTO_HTTP) {
if (!http_check_timeout(c, now))
continue;
if (!TAILQ_EMPTY(&c->http_requests))