]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: Switch the HTTP response in tunnel mode as earlier as possible
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Feb 2018 14:54:15 +0000 (15:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Feb 2018 15:47:12 +0000 (16:47 +0100)
commitfd04fcf5edb0a24cd29ce8f4d4dc2aa3a0e2e82c
tree6c677e67d696cadf5712607e9b3b002720454237
parent4ac77a98cda3d0f9b1d9de7bbbda2c91357f0767
BUG/MEDIUM: http: Switch the HTTP response in tunnel mode as earlier as possible

When the body length is undefined (no Content-Length or Transfer-Encoding
headers), The reponse remains in ending mode, waiting the request is done. So,
most of time this is not a problem because the resquest is done before the
response. But when a client sends data to a server that replies without waiting
all the data, it is really not desirable to wait the end of the request to
finish the response.

This bug was introduced when the tunneling of the request and the reponse was
refactored, in commit 4be980391 ("MINOR: http: Switch requests/responses in
TUNNEL mode only by checking txn flag").

This patch should be backported in 1.8 and 1.7.
src/proto_http.c