]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h1-htx: Don't flag response as bodyless when a tunnel is established
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 9 Sep 2024 16:16:49 +0000 (18:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 9 Sep 2024 17:01:47 +0000 (19:01 +0200)
commita99d58819f8184fb6f500807ddaf2371c5f1c110
tree28f556db2ac48eda213d5cefa4a5eea61a35503b
parentf6e193f1b05bc3a73090b1efeb3f0440a0c776b0
BUG/MINOR: h1-htx: Don't flag response as bodyless when a tunnel is established

This reverts commit 225a4d02e1f6a12c0b4f3584949fad3339d71708.

When a 200-OK response is replied to a CONNECT request or a
101-Switching-protocol, a tunnel is considered as established between the
client and the server. However, we must not declare the reponse as
bodyless. Of course, there is no payload, but tunneled data are expected.

Because of this bug, the zero-copy forwarding is disabled on the server
side.

This patch must be backported as far as 2.9.
src/h1_htx.c