]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: stream: Fix custom timeouts initialization when setting backend
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Jul 2026 07:03:46 +0000 (09:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 06:52:07 +0000 (08:52 +0200)
commit69caa535300fce261dbab2d7fc3b841b882ae757
tree9b384d7ec18ea47aad15770ba43a8615969e0e52
parente9a4746f58367813412d5af0cf7ee438208de0e3
BUG/MINOR: stream: Fix custom timeouts initialization when setting backend

Timeouts may be overwritten via the action "set-timeout". Client timeout is
supported on frontends, connect/queue/tunnel/server timeouts are supported
on backends and tarpit timeout is supported on both.

However, there is an issue with the listener. In that case, the action is
always executed in the frontend context and the backend-side timeouts are
then reset, when the backend is selected. If it is another backend, it is
logical. But most of time, the backend is unchanged. And in that case, these
timeouts must be preserved.

Documentation of set-timeout action was improved.

This patch should be backported to all supported versions. Be carefull, all
timeouts are not supported in 3.3 and lower (3.3->3.0: server/tunnel/client
- 2.8->2.6: server/tunnel)
doc/configuration.txt
src/stream.c