]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stconn: Move data from kip to kop when data are sent to the consumer
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Sep 2025 06:54:31 +0000 (08:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Oct 2025 09:01:37 +0000 (11:01 +0200)
When data are sent to the consumer, the known output payload length is
updated using the known input payload length value and this last one is then
reset. se_fwd_kip() function is used for this purpose.

src/stconn.c

index 99dc0256be1fb242a4571744d2167c0fdf029824..ed5f94e1d73a3dd0d9c3ddfd7f15b33d97fb92e6 100644 (file)
@@ -1643,6 +1643,8 @@ int sc_conn_send(struct stconn *sc)
        if (!conn->mux)
                return 0;
 
+       se_fwd_kip(sc->sedesc);
+
        if (sc_ep_have_ff_data(sc)) {
                unsigned int send_flag = 0;