]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: Trim excess server data at the end of a transaction
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 09:34:08 +0000 (11:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 09:39:19 +0000 (11:39 +0200)
commit03627245c67216bb003912df42150ec1401cd716
treeb30d85a268b8da66266c5372c07ca05c2c1dc522
parentf89f0991f603efd304fecd09d0f340c1f0e0feff
BUG/MEDIUM: mux-h1: Trim excess server data at the end of a transaction

At the end of a transaction, when the conn_stream is detach from the H1
connection, on the server side, we must release the input buffer to trim any
excess data received from the server to be sure to block invalid responses.  A
typical example of such data would be from a buggy server responding to a HEAD
with some data, or sending more than the advertised content-length.

This issue was reported on Gitbub. See issue #176.

This patch must be backported to 2.0 and 1.9.
src/mux_h1.c