From: Willy Tarreau Date: Thu, 6 Jan 2011 17:19:50 +0000 (+0100) Subject: [BUG] http: stats were not incremented on http-request deny X-Git-Tag: v1.5-dev8~279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6da0f6d6dd54173165d813874f44501081962e7c;p=thirdparty%2Fhaproxy.git [BUG] http: stats were not incremented on http-request deny A counter increase was missing here. This should be backported to 1.4 with care, as the code has changed a bit. --- diff --git a/src/proto_http.c b/src/proto_http.c index 156fd4b749..30177eeeef 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -3084,6 +3084,11 @@ int http_process_req_common(struct session *s, struct buffer *req, int an_bit, s s->logs.tv_request = now; stream_int_retnclose(req->prod, error_message(s, HTTP_ERR_403)); session_inc_http_err_ctr(s); + s->fe->fe_counters.denied_req++; + if (an_bit == AN_REQ_HTTP_PROCESS_BE) + s->be->be_counters.denied_req++; + if (s->listener->counters) + s->listener->counters->denied_req++; goto return_prx_cond; }