1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-04-11 03:31:36 +00:00

BUG/MINOR: http-rules: Preserve FLT_END analyzers on reject action

When at least a filter is attached to a stream, FLT_END analyzers must be
preserved on request and response channels.

This patch should be backported as far as 1.8.
This commit is contained in:
Christopher Faulet 2020-03-06 14:02:57 +01:00
parent 90d22a88cb
commit c5bb5a0f2b

View File

@ -369,8 +369,8 @@ static enum act_return http_action_reject(struct act_rule *rule, struct proxy *p
si_must_kill_conn(chn_prod(&s->req));
channel_abort(&s->req);
channel_abort(&s->res);
s->req.analysers = 0;
s->res.analysers = 0;
s->req.analysers &= AN_RES_FLT_END;
s->res.analysers &= AN_REQ_FLT_END;
_HA_ATOMIC_ADD(&s->be->be_counters.denied_req, 1);
_HA_ATOMIC_ADD(&sess->fe->fe_counters.denied_req, 1);