BUG/MINOR: http-ana: Adjust the server status before the L7 retries
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 Nov 2024 15:33:55 +0000 (16:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Nov 2024 14:45:53 +0000 (15:45 +0100)
commitca12dcec263cf8125160ed7981c4886913a9bd72
treeea644dfa48a7b7f436db379e81ae324df3c086db
parentadc7e713f733de9f5c7fea03f764001d7accab1b
BUG/MINOR: http-ana: Adjust the server status before the L7 retries

The server status must be adjusted, if necessary, at each retry. It is
properly performed when "obersve layer4" directive is set. But for the layer
7, only the last attempt was considered.

When the L7 retries were implemented, all retries were added before the
server status adjutement. So only the last attempt was considered. To fix
the issue, we must adjut the server status first, and then try to perform a
L7 retry.

This patch should fix the issue #2679. It must be backported to all stable
versions.

(cherry picked from commit 2a5da31ccef239e21d17ec34430fdc6b51b9cc67)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_ana.c