MINOR: mux-fcgi: Set known input payload length during demux

Set <kip> 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").
This commit is contained in:
Christopher Faulet 2025-09-18 08:32:23 +02:00
parent 2bf2f68cd8
commit 4fdc23e648

View File

@ -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);