]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] http: trim any excess buffer data when recycling a connection
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Jan 2010 22:11:14 +0000 (23:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Jan 2010 22:11:14 +0000 (23:11 +0100)
commit739cfbab6af77bf81349d588d431b1d7e7a9eba1
treefd9985a64a202facd944f8e76e1f3d4ddc8ffbc2
parentd08f82ebe2d88698941641a92066570fd8c788b2
[BUG] http: trim any excess buffer data when recycling a connection

We must trim any excess data from the response buffer when recycling
a keep-alive connection, because we may have blocked an invalid response
from a server that we don't want to accidentely forward once we disable
the analysers, nor do we want those data to come along with next response.
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.
src/proto_http.c