]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: Don't increment conn_retries counter too early
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Aug 2022 08:47:48 +0000 (10:47 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Aug 2022 09:16:35 +0000 (11:16 +0200)
commitbc6b23813fd2b0cf08ee9051f00ed9986ed1036e
tree2e179edb287402425b330f32fa8a6a9bd1b4bb09
parent14a60d420a66368a4262e8ecf259781292509659
BUG/MINOR: backend: Don't increment conn_retries counter too early

The connection retry counter is incremented too early when a connection
fails. In SC_ST_CER state, errors handling must be performed before
incrementing the counter. Otherwise, we may consider the max connection
attempt is reached while a last one is in fact possible.

This patch must be backported to 2.6.
src/backend.c