[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:
Willy Tarreau 2010-05-23 23:50:44 +02:00
parent a3445fce16
commit 23968d898a

View File

@ -692,9 +692,9 @@ int tcp_inspect_request(struct session *s, struct buffer *req, int an_bit)
buffer_abort(s->rep);
req->analysers = 0;
s->fe->counters.failed_req++;
s->fe->counters.denied_req++;
if (s->listener->counters)
s->listener->counters->failed_req++;
s->listener->counters->denied_req++;
if (!(s->flags & SN_ERR_MASK))
s->flags |= SN_ERR_PRXCOND;