]> git.kaiwu.me - haproxy.git/commitdiff
BUG/MINOR: stconn: Increase SC bytes_out value in se_done_ff()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 15:07:58 +0000 (16:07 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 15:17:33 +0000 (16:17 +0100)
When data are sent via the zero-copy data forwarding, we must not forget to
increase the stconn bytes_out value.

This patch must be backport to 3.3.

include/haproxy/stconn.h

index 5a906e623bfefcc1a55a43b0f4e51d2dc7506bb3..73e94c8f7dd5c8040b3858593e5ed11d5ab983cd 100644 (file)
@@ -525,7 +525,7 @@ static inline size_t se_done_ff(struct sedesc *se)
                        }
                }
        }
-
+       se->sc->bytes_out += ret;
        return ret;
 }