]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux_quic: refresh timeout only if I/O performed quic-interop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 30 Apr 2026 15:47:28 +0000 (17:47 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 May 2026 12:34:29 +0000 (14:34 +0200)
commit419cc6e2f6d2bb8fd1a761ecb44ce9730bcbcb3e
tree5ac3431c45af6712453fdee28a9d1c3ace1391ca
parentb8961ee8b39a29523e28fe10db6e58788bf9019a
BUG/MINOR: mux_quic: refresh timeout only if I/O performed

Previously, QUIC MUX timeout was refreshed on every qcc_io_cb()
execution. This is not desired if no send/receive were performed, as in
this case the connection may be stuck.

This patch fixes this by refreshing timeout only if some progress is
performed during qcc_io_cb(). To implement this, return value of
qcc_io_recv() has been adjusted to return the number of newly decoded
bytes.

This patch is considered as a bug fix as without it there is a risk of
QUIC MUX inactivity timeout to be less efficient and to maintain a
connection too long.

This should be backported up to 2.8, after a period of observation.
src/mux_quic.c