]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: refactor idle timeout calculation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 10 Apr 2025 09:51:05 +0000 (11:51 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Apr 2025 12:49:36 +0000 (14:49 +0200)
commit99b2e52f89b91573ae97bd18ffdca6da2742df33
tree4739e01d780781d83e83d0daee1f90fb2796f913
parent243bc95de016de8794bbf65cca81a026e436ce6d
MINOR: mux-h2: refactor idle timeout calculation

Reorganize code for timeout calculation in case the connection is idle.
The objective is to better reflect the relations between each timeouts
as follow :

* if GOAWAY already emitted, use shut-timeout, or if unset fallback to
  client/server one. However, an already set timeout is never erased.

* else, for frontend connection, http-request or keep-alive timeout is
  applied depending on the current demux state. If the selected value is
  unset, fallback to client timeout

* for backend connection, no timeout is set to perform http-reuse

This commit is pure refactoring, so no functional change should occur.
src/mux_h2.c