BUG/MAJOR: ring: tcp forward on ring can break the reader counter.
authorEmeric Brun <ebrun@haproxy.com>
Wed, 2 Dec 2020 16:02:09 +0000 (17:02 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 08:23:22 +0000 (09:23 +0100)
commit6b9c2b38f1bc59c443ad9e25e2edf59ed4e79f00
tree8a40e249e05961cbfd6f80c8d6f4ae2258379bb7
parent04cbfd7cc0138575caf53e9710a49f1ed0a2ebbd
BUG/MAJOR: ring: tcp forward on ring can break the reader counter.

If the session is not established, the applet handler could leave
with the applet detached from the ring. At next call, the attach
counter will be decreased again causing unpredectable behavior.

This patch should be backported on branches >=2.2

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