BUG/MINOR: rules: Increment be_counters if backend is assigned for a silent-drop
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 14:23:18 +0000 (15:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:52:57 +0000 (16:52 +0200)
commit78b992f7bf1bf68dbd97782dcf4b89ea19203181
treeb4c9757743ad8cf6481de42ccb58ffe499c8c737
parente15005b1f975a82126f29d912cd9e5419448c845
BUG/MINOR: rules: Increment be_counters if backend is assigned for a silent-drop

Backend counters must be incremented only if a backend was already assigned to
the stream (when the stream exists). Otherwise, it means we are still on the
frontend side.

This patch may be backported as far as 1.6.

(cherry picked from commit ddc005ae5783b6479292156b97db7b6fbdabf6a3)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/proto_tcp.c