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 68ce436fa7dbf2980e109706053b0fe12b3e4a6a
parent 0eab72f4cd62a06a58d0e90c18c2563d2944fd72
Author: Joris Vink <joris@coders.se>
Date:   Mon,  4 Nov 2019 07:23:21 +0100

expand previous commit further, check proto as well.

Diffstat:
src/connection.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/connection.c b/src/connection.c @@ -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))