]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] fix error response in case of server error
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Feb 2010 08:57:24 +0000 (09:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Feb 2010 09:04:19 +0000 (10:04 +0100)
commit0b89fbb076c2e3d6f27b147dced692164a4b9e82
treed8f74b3fd31c165ce47457185fe9ca582268f8e6
parent6b35ce132fb838b8e7e0f69567bad883c07004a7
[BUG] fix error response in case of server error

The fix below was incomplete :
    commit d5fd51c75be6479539228f84377622a986b23be2

    [BUG] http_server_error() must not purge a previous pending response

    This can cause parts of responses to be truncated in case of
    pipelined requests if the second request generates an error
    before the first request is completely flushed.

Pending response data being rejected was still sent, causing inappropriate
error responses in case of error while parsing a response header. We must
purge pending data from the response buffer that were not scheduled to be
sent (l - send_max).
src/proto_http.c