From 4fdc23e648570565f831865bc055eb094f147f29 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 18 Sep 2025 08:32:23 +0200 Subject: [PATCH] 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"). --- src/mux_fcgi.c | 3 +++ 1 file changed, 3 insertions(+) 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);