]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: stream: Fix custom max-retries initialization when setting backend
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Jul 2026 08:07:31 +0000 (10:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 06:52:07 +0000 (08:52 +0200)
commitb71d27e253fa6f8c82afd768f7691a4079f0f4f0
tree9f4715541c884bf974305a76de10667ab72b5271
parentba6c518ee2a16dca02afe77fb62b7e997d3b5b03
BUG/MINOR: stream: Fix custom max-retries initialization when setting backend

It is possible to overwrite the configured max-retries value with the
"set-retries" action. However there is an issue with the listeners. When the
backend is set, this value is reset with the backend value. However, when
the backend is unchanged, the custom value must be preserved.

To fix the issue, when the stream is created, we set the max-retries to the
listener value. It remains 0 for pure-frontend. And the backend value is
used only if it is not the same proxy.

The documentation of set-retries action was improved.

This patch should be backported as far as 3.2.
doc/configuration.txt
src/stream.c