From 23968d898a68b21b49a83ffc74ff18bfd9323bb5 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 23 May 2010 23:50:44 +0200 Subject: [PATCH] [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. --- src/proto_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto_tcp.c b/src/proto_tcp.c index 7c958fc4d..96bdebcfe 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -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;