BUG/MEDIUM: http/compression: Fix how chunked data are copied during the HTTP body...
authorChristopher Faulet <christopher.faulet@capflam.org>
Thu, 22 Sep 2016 13:31:43 +0000 (15:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Sep 2016 14:01:14 +0000 (16:01 +0200)
commit06ecf3ab720a635772013feb2535c2fb2e84e6a1
tree498dd8107ab657ef0e547198fcf413b2ce649c5e
parent7d56c6d3479edd3791410b4c38bda0757088fc87
BUG/MEDIUM: http/compression: Fix how chunked data are copied during the HTTP body parsing

When the compression is enable on HTTP responses, the chunked data are copied in
a temporary buffer during the HTTP body parsing and then compressed when
everything is forwarded to the client. But the amout of data that can be copied
was not correctly calculated. In many cases, it worked, else on the edge when
the channel buffer was almost full.

[wt: bug introduced by b77c5c26 in 1.7-dev, no backport needed]
src/flt_http_comp.c