]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cache: Be sure to end the forwarding when XFER length is unknown
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Jan 2019 13:10:01 +0000 (14:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Jan 2019 19:12:49 +0000 (20:12 +0100)
commit6112391f811a2c54091dd146cf02fcbb8bf195ba
tree53e127cc81535a2520e1e168204306f33a25c5ed
parent5adbeeb336d244176b748d4f1ec271584c32131b
BUG/MEDIUM: cache: Be sure to end the forwarding when XFER length is unknown

This bug exists in the HTX code and in the legacy one. When the body length is
unknown, the applet hangs. For the legacy code, it hangs because the end of the
cached object is not correctly handled and the applet is never recalled. For the
HTX code, only the begining of the response (the 1st buffer) is sent then the
applet hangs. To work in HTX, The fast forwarding must be correctly handled.

This patch must be backported to 1.9.

[cf: the patch adding the function channel_add_input must be backported with
this one. It does not exist in 1.8 because only responses with a C-L are cached.]
src/cache.c