]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Properly handle http-request and http-keep-alive timeouts
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Nov 2023 17:36:02 +0000 (18:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Nov 2023 15:38:06 +0000 (16:38 +0100)
commit2c9c2f9d77b9dac5a32d33838c5bca67f61fb1f5
tree0dc2954c9cfa3f7018c9423d2e99c0067d4de71b
parent8dae361f356890ac3e0e51df909d902c1f065d25
BUG/MINOR: mux-h1: Properly handle http-request and http-keep-alive timeouts

It is now the turn for the H1 mux to be fix to properly handle http-request
and http-keep-alive timeouts. It is quite surprising but it is broken since
the 2.2. For idle connections on client side, the smallest value between the
client timeout and the http-request/http-keep-alive timeout is used while
the client timeout should only be used if other ones are not defined. So, if
the client timeout is the smallest value, the keep-alive timeout is not
respected.

It is only an issue for idle client connections. The http-request timeout is
respected from the moment part of the next request was received.

This patch should fix the issue #2334. It must be backported as far as 2.2. But
be careful during the backports. The H1 mux had evolved a lot since the 2.2.
src/mux_h1.c