]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: don't abort client connection on premature responses
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Dec 2012 11:10:09 +0000 (12:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Dec 2012 11:10:09 +0000 (12:10 +0100)
commit40f151aa79bcdf8b517c4e5666edbc7a47ea7fdc
tree300f770cd50fefd4b08f9792c8375581e5260bbd
parent34ac5665d4f01496e298ef771efaaccd2c41a20d
BUG/MINOR: http: don't abort client connection on premature responses

When a server responds prematurely to a POST request, haproxy used to
cause the transfer to be aborted before the end. This is problematic
because this causes the client to receive a TCP reset when it tries to
push more data, generally preventing it from receiving the response
which contain the reason for the premature reponse (eg: "entity too
large" or an authentication request).

From now on we take care of allowing the upload traffic to flow to the
server even when the response has been received, since the server is
supposed to drain it. That way the client receives the server response.

This bug has been present since 1.4 and the fix should probably be
backported there.
src/proto_http.c