]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: http-ana: Increment scf bytes_out value if an haproxy error is sent
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 09:01:56 +0000 (10:01 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:34:47 +0000 (15:34 +0100)
When an HAproxy error is sent, we must not forget to increment bytes_out
value on the front stconn.

This patch must be backport to 3.3.

src/http_ana.c

index 49440e6bdf417b0a42d602b0408c7132f5c523bd..7cd6529f1da07cca575a2102b90fb4b24a38f14a 100644 (file)
@@ -4765,6 +4765,7 @@ 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;
 }