]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] stream_interface: truncate buffers when sending error messages
authorWilly Tarreau <w@1wt.eu>
Sun, 12 Dec 2010 12:06:00 +0000 (13:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 12 Dec 2010 12:06:00 +0000 (13:06 +0100)
commit798e128a4dbee623e1c098167c8e84e53a89609f
tree86d87a193f8f0b4051b92578704be0c664ebec26
parent3fe693b4d6c3e912688c1996a977cd4d56ed7334
[BUG] stream_interface: truncate buffers when sending error messages

When an error message is returned to a client, all buffer contents
were left intact. Since the analysers were removed, the potentially
invalid data that were read had a chance to be sent too.

Now we ensure we only keep the already scheduled data in the buffer
and we truncate it after that. That means that responses with data
that must be blocked will really be blocked, and that incorrectly
chunked data will be stopped at the point where the chunking fails.
src/stream_interface.c