]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: correctly implement backend timeout
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 22 Jul 2025 13:44:17 +0000 (15:44 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 23 Jul 2025 12:36:48 +0000 (14:36 +0200)
commit89329b147dec6a7c2c11fc5badd4c1cde1f1eedd
treee849c33e46aae13d98fa8af4551dad16e1bb6e8c
parent95cb763cd68b2eb4a2127ceb135aec87bbcec34b
MINOR: mux-quic: correctly implement backend timeout

qcc_refresh_timeout() is the function called on QUIC MUX activity. Its
purpose is to update the timeout by selecting the correct value
depending on the connection state.

Prior to this patch, backend connections were mostly ignored by the
function. However, the default server timeout was selecting as a
fallback. This is incompatible with backend connections reuse.

This patch fixes timeout applied on backend connections. Only values
specific to frontend which are http-request and http-keep-alive timeouts
are now ignored for a backend connection. Also, fallback timeout is only
used for frontend connections.

This patch ensures that an idle backend connection won't be deleted due
to server timeout. This is necessary for proper connection reuse which
will be implemented in a future patch.
src/mux_quic.c