]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] tcp: dropped connections must be counted as "denied" not "failed"
authorWilly Tarreau <w@1wt.eu>
Sun, 23 May 2010 21:50:44 +0000 (23:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 May 2010 16:10:31 +0000 (18:10 +0200)
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

index 7c958fc4d8769f414c9b20220ec9518f52e96cf7..96bdebcfed94db6123ef1e261c8900f15087eb1a 100644 (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;