]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux_quic: make sure to always apply offsets to now_ms in expiration
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2024 14:41:21 +0000 (15:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2024 14:41:21 +0000 (15:41 +0100)
commitf66bfcff96082ce5c98c635c5da7a9ba157a20af
tree6352a20aad574af495028c8fe47778d2dbf19adf
parent841be4cdd15b3d0834a478cc95ebda0f47171b4d
BUG/MINOR: mux_quic: make sure to always apply offsets to now_ms in expiration

Now_ms can be zero nowadays, so it's not suitable for direct assignment to
t->expire, as there's a risk that the timer never wakes up once assigned
(TICK_ETERNITY). Let's use tick_add(now_ms, 0) for an immediate wakeup
instead. The impact looks nul since the task is also woken up, but better
not leave such tasks in the timer tree anyway.

This should be backported where it applies.
src/mux_quic.c