]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] http: denied requests must not be counted as denied resps in listeners
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Jun 2010 06:43:37 +0000 (08:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 12:02:54 +0000 (14:02 +0200)
Socket stats had a wrong counter. This harmless bugfix must be backported
to 1.4.

src/proto_http.c

index 920dca99c4746166579a959ae77b3937ecdc068f..4645112371421a0920b1db669a03a5584ab967f5 100644 (file)
@@ -5248,7 +5248,7 @@ int apply_filter_to_req_headers(struct session *t, struct buffer *req, struct hd
 
                                t->be->counters.denied_req++;
                                if (t->listener->counters)
-                                       t->listener->counters->denied_resp++;
+                                       t->listener->counters->denied_req++;
 
                                break;
 
@@ -5258,7 +5258,7 @@ int apply_filter_to_req_headers(struct session *t, struct buffer *req, struct hd
 
                                t->be->counters.denied_req++;
                                if (t->listener->counters)
-                                       t->listener->counters->denied_resp++;
+                                       t->listener->counters->denied_req++;
 
                                break;
 
@@ -5366,7 +5366,7 @@ int apply_filter_to_req_line(struct session *t, struct buffer *req, struct hdr_e
 
                        t->be->counters.denied_req++;
                        if (t->listener->counters)
-                               t->listener->counters->denied_resp++;
+                               t->listener->counters->denied_req++;
 
                        done = 1;
                        break;
@@ -5376,7 +5376,7 @@ int apply_filter_to_req_line(struct session *t, struct buffer *req, struct hdr_e
 
                        t->be->counters.denied_req++;
                        if (t->listener->counters)
-                               t->listener->counters->denied_resp++;
+                               t->listener->counters->denied_req++;
 
                        done = 1;
                        break;