BUG/MINOR: http-ana: Don't increment HTTP error counter on read error/timeout
This should have been fixed when the commit "BUG/MINOR: http-ana: Don't
increment HTTP error counter on internal errors" was backported but I forgot
to do so. The HTTP error counter must not be incremented if a read error or
a read timeout is encountered. Parsing error are already reported by the
mux.
This patch must be backported as far as 2.0, on the HTX part only.
diff --git a/src/http_ana.c b/src/http_ana.c
index f913887..f9dbfb1 100644
--- a/src/http_ana.c
+++ b/src/http_ana.c
@@ -148,7 +148,6 @@
if (sess->fe->options & PR_O_IGNORE_PRB)
goto failed_keep_alive;
- stream_inc_http_err_ctr(s);
stream_inc_http_req_ctr(s);
proxy_inc_fe_req_ctr(sess->listener, sess->fe);
_HA_ATOMIC_ADD(&sess->fe->fe_counters.failed_req, 1);
@@ -175,7 +174,6 @@
if (sess->fe->options & PR_O_IGNORE_PRB)
goto failed_keep_alive;
- stream_inc_http_err_ctr(s);
stream_inc_http_req_ctr(s);
proxy_inc_fe_req_ctr(sess->listener, sess->fe);
_HA_ATOMIC_ADD(&sess->fe->fe_counters.failed_req, 1);