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").
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});
}
b_del(&fstrm->rxbuf, total);
+ fstrm->sd->kip += (h1m->body_len - prev_body_len);
end:
htx_to_buf(htx, buf);