]> git.kaiwu.me - haproxy.git/commitdiff
Revert "BUG/MINOR: http-ana: Increment scf bytes_out value if an haproxy error is...
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Dec 2026 08:12:29 +0000 (09:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Dec 2026 10:52:21 +0000 (11:52 +0100)
This reverts commit 306931dfb1d3b40cf0e2364be0fe719389905feb. The internal
responses are already accounted when data are forwarded to the mux on front
side, in sc_conn_send().

This patch should fix the issue #3614. It must be backported as far as 3.3.

src/http_ana.c

index ca103dc503e220bf67dc4df5b76dcb6f794433f0..6ff4fba44ccbb898902358543da5302f8201ce70 100644 (file)
@@ -4906,7 +4906,6 @@ int http_forward_proxy_resp(struct stream *s, int final)
        data = htx->data - co_data(res);
        c_adv(res, data);
        htx->first = -1;
-       s->scf->bytes_out += data;
        return 1;
 }