]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-h2: reject non-101 2xx responses to Extended CONNECT
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 23 Nov 2026 15:13:02 +0000 (16:13 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 23 Nov 2026 15:43:39 +0000 (16:43 +0100)
commitab845daab727f6f04017fe5155fc37b8a790fb98
tree364bf1adca5358b9a8ac73793e6ed98d61f79f73
parentcddcc51e6c1b446accb88b2cd237f654f0366523
BUG/MEDIUM: mux-h2: reject non-101 2xx responses to Extended CONNECT

An Extended CONNECT (RFC8441) is converted to an upgrade request for an
H1 server, and a 101 response is converted to a 200, meaning that the
tunnel is established. But if the server ignores the upgrade and returns
a regular 2xx, it was forwarded as-is, so the client considered the
tunnel as established and took the payload for tunneled data.

Let's handle such a response as an error, as is already done for a 101
without Extended CONNECT.

This was introduced in 2.4 by commit efe2276a9 ("MEDIUM: mux_h2:
generate Extended CONNECT response") and must be backported to all
supported versions.
src/mux_h2.c