mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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.
This commit is contained in:
parent
f573ba2033
commit
ddc005ae57
1 changed files with 2 additions and 0 deletions
|
|
@ -1266,6 +1266,8 @@ static enum act_return tcp_exec_action_silent_drop(struct act_rule *rule, struct
|
|||
channel_abort(&strm->res);
|
||||
strm->req.analysers &= AN_REQ_FLT_END;
|
||||
strm->res.analysers &= AN_RES_FLT_END;
|
||||
if (strm->flags & SF_BE_ASSIGNED)
|
||||
_HA_ATOMIC_ADD(&strm->be->be_counters.denied_req, 1);
|
||||
if (!(strm->flags & SF_ERR_MASK))
|
||||
strm->flags |= SF_ERR_PRXCOND;
|
||||
if (!(strm->flags & SF_FINST_MASK))
|
||||
|
|
|
|||
Loading…
Reference in a new issue