Skip to content

Commit

Permalink
sip/transp: reset tcp timeout on websocket receive (#1075)
Browse files Browse the repository at this point in the history
fixes #1074
  • Loading branch information
sreimers authored Mar 6, 2024
1 parent 66d3d1c commit 88fd4e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 88fd4e3

Please sign in to comment.