From 88fd4e30f390dc34017eca3b1e8d377ce3ee35a7 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Wed, 6 Mar 2024 13:33:06 +0100 Subject: [PATCH] sip/transp: reset tcp timeout on websocket receive (#1075) fixes #1074 --- src/sip/transp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sip/transp.c b/src/sip/transp.c index eb6062fd6..e62e9f18d 100644 --- a/src/sip/transp.c +++ b/src/sip/transp.c @@ -945,6 +945,8 @@ static void websock_recv_handler(const struct websock_hdr *hdr, if (mb->end <= 4) return; + tmr_start(&conn->tmr, TCP_IDLE_TIMEOUT * 1000, conn_tmr_handler, conn); + start = mb->pos; err = sip_msg_decode(&msg, mb);