]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] http redirect: use proper call to return last response
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Jan 2010 23:26:50 +0000 (00:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Jan 2010 23:36:57 +0000 (00:36 +0100)
commitea65e68cc8b9c1de6f07c2109274793fe98fe0e8
treec3a56af0f758ff8f0bbd56ccba4a238797a03ea0
parent4602363f6acff6466cf139a4ae7e8b5c3b5b9b39
[MINOR] http redirect: use proper call to return last response

During a redirect, we used to send the last chunk of response with
stream_int_cond_close(). But this is wrong in case of pipeline,
because if the response already contains something, this function
will refrain from touching the buffer. Use a concatenation function
instead.

Also, this call might still fail when the buffer is full, we need
a second fix to refrain from parsing an HTTP request as long as the
response buffer is full, otherwise we may not even be able to return
a pending redirect or an error code.
src/proto_http.c