BUG/MINOR: stream: Decrement server current session counter on L7 retry
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 May 2021 16:23:59 +0000 (18:23 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 May 2021 13:39:54 +0000 (15:39 +0200)
commit669d667f336290d05a6bb38b787d7624f0177964
treed17f143b2720c22e8de4af0cf4f1b29df4439523
parent751872e465e698879d64d37d79d1239e342b8da2
BUG/MINOR: stream: Decrement server current session counter on L7 retry

When a L7 retry is performed, we must not forget to decrement the current
session counter of the assigned server. Of course, it must only be done if
the current session is already counted on the server, thus if SF_CURR_SESS
flag is set on the stream.

This patch is related to the issue #1003. It must be backported as far as
2.0.

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