From: Christopher Faulet Date: Thu, 18 Sep 2025 06:32:23 +0000 (+0200) Subject: MINOR: mux-fcgi: Set known input payload length during demux X-Git-Tag: v3.3-dev10~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fdc23e648570565f831865bc055eb094f147f29;p=thirdparty%2Fhaproxy.git MINOR: mux-fcgi: Set known input payload length during demux Set value during the response parsing. The difference between the body length before and after a parsing loop is added. The patch relies on the previous one ("MINOR: h1-htx: Increment body len when parsing a payload with no xfer length"). --- diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index eadbdfc60..bbec51f3a 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -3542,7 +3542,9 @@ static size_t fcgi_strm_parse_response(struct fcgi_strm *fstrm, struct buffer *b struct htx *htx; struct h1m *h1m = &fstrm->h1m; size_t ret, data, total = 0; + uint64_t prev_body_len; + prev_body_len = h1m->body_len; htx = htx_from_buf(buf); TRACE_ENTER(FCGI_EV_RSP_DATA, fconn->conn, fstrm, htx, (size_t[]){count}); @@ -3626,6 +3628,7 @@ static size_t fcgi_strm_parse_response(struct fcgi_strm *fstrm, struct buffer *b } b_del(&fstrm->rxbuf, total); + fstrm->sd->kip += (h1m->body_len - prev_body_len); end: htx_to_buf(htx, buf);