mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-21 13:16:57 +00:00
BUG/MINOR: http-ana: Don't increment HTTP error counter on internal errors
If internal error is reported by the mux during HTTP request parsing, the HTTP error counter should not be incremented. It should only be incremented on parsing error to reflect errors caused by clients. This patch must be backported as far as 2.0. During the backport, the same must be performed for 408-request-time-out errors.
This commit is contained in:
parent
f4b7074784
commit
bf7175f9b6
@ -110,10 +110,11 @@ int http_wait_for_request(struct stream *s, struct channel *req, int an_bit)
|
||||
/* Parsing errors are caught here */
|
||||
if (htx->flags & (HTX_FL_PARSING_ERROR|HTX_FL_PROCESSING_ERROR)) {
|
||||
stream_inc_http_req_ctr(s);
|
||||
stream_inc_http_err_ctr(s);
|
||||
proxy_inc_fe_req_ctr(sess->listener, sess->fe);
|
||||
if (htx->flags & HTX_FL_PARSING_ERROR)
|
||||
if (htx->flags & HTX_FL_PARSING_ERROR) {
|
||||
stream_inc_http_err_ctr(s);
|
||||
goto return_bad_req;
|
||||
}
|
||||
else
|
||||
goto return_int_err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user