]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cache: bad computation of the remaining size
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 28 Nov 2017 10:33:02 +0000 (11:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Nov 2017 11:06:06 +0000 (12:06 +0100)
commitbcd9101a6652856d2db30b254906a2c5eb1bb20a
tree7ac97938b4c6a6ebc8cef53f23783b7866ad55df
parentc3cd35f96cbb6739dace9906448c5a68f554d96e
BUG/MEDIUM: cache: bad computation of the remaining size

The cache was not setting the hdrs_len to zero when we are called
in the http_forward_data with headers + body.

The consequence is to always try to store a size - the size of headers,
during the calls to http_forward_data even when it has already forwarded
the headers.

Thanks to Cyril Bonté for reporting this bug.

Must be backported to 1.8.
src/cache.c