From 1e8ef1bed6ef687e66578214f0b184aab37b4154 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 10 Feb 2023 16:35:43 +0100 Subject: [PATCH] BUG/MINOR: quic: Missing call to task_queue() in qc_idle_timer_do_rearm() The aim of this function is to rearm the idle timer. The ->expire field of the timer task was updated without being requeued. Some connection could be unexpectedly terminated. Must be backported to 2.6 and 2.7. --- src/quic_conn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quic_conn.c b/src/quic_conn.c index a44c28d..cbead12 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -5221,6 +5221,7 @@ static void qc_idle_timer_do_rearm(struct quic_conn *qc) expire = QUIC_MAX(3 * quic_pto(qc), qc->max_idle_timeout); qc->idle_timer_task->expire = tick_add(now_ms, MS_TO_TICKS(expire)); + task_queue(qc->idle_timer_task); } /* Rearm the idle timer for QUIC connection depending on boolean -- 1.7.10.4