mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
[BUG] tcp: dropped connections must be counted as "denied" not "failed"
This probably was a copy-paste typo from the initial tcp-request feature. This must be backported to 1.4 and possibly 1.3.
This commit is contained in:
parent
a3445fce16
commit
23968d898a
@ -692,9 +692,9 @@ int tcp_inspect_request(struct session *s, struct buffer *req, int an_bit)
|
|||||||
buffer_abort(s->rep);
|
buffer_abort(s->rep);
|
||||||
req->analysers = 0;
|
req->analysers = 0;
|
||||||
|
|
||||||
s->fe->counters.failed_req++;
|
s->fe->counters.denied_req++;
|
||||||
if (s->listener->counters)
|
if (s->listener->counters)
|
||||||
s->listener->counters->failed_req++;
|
s->listener->counters->denied_req++;
|
||||||
|
|
||||||
if (!(s->flags & SN_ERR_MASK))
|
if (!(s->flags & SN_ERR_MASK))
|
||||||
s->flags |= SN_ERR_PRXCOND;
|
s->flags |= SN_ERR_PRXCOND;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user