]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-ana: Don't increment conn_retries counter before the L7 retry
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Mar 2023 14:45:39 +0000 (15:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Mar 2023 16:35:16 +0000 (17:35 +0100)
commit41ade746c727596d5ac6fa10446be25c19d39362
tree17b0970ea02570eaa5e935a99038b8eb5b14610d
parentcaa16549b81baca7426ed838a8a94b4cc5c441fe
BUG/MINOR: http-ana: Don't increment conn_retries counter before the L7 retry

When we are about to perform a L7 retry, we deal with the conn_retries
counter, to be sure we can retry. However, there is an issue here because
the counter is incremented before it is checked against the backend
limit. So, we can miss a connection retry.

Of course, we must invert both operation. The conn_retries counter must be
incremented after the check agains the backend limit.

This patch must be backported as far as 2.6.
src/http_ana.c