BUG/MINOR: h2: reject extended connect for h2c protocol
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 1 Aug 2024 13:52:56 +0000 (15:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Oct 2024 05:46:33 +0000 (07:46 +0200)
commitce10357477e007e935ad50f1180a512fb2747a71
tree60c723a2d2889e6e42bee9c02d7edf82e22869eb
parentcba44958ae00821626990add07c937e305955b95
BUG/MINOR: h2: reject extended connect for h2c protocol

This commit prevents forwarding of an HTTP/2 Extended CONNECT when "h2c"
or "h2" token is set as targetted protocol. Contrary to the previous
commit which deals with HTTP/1 mux, this time the request is rejected
and a RESET_STREAM is reported to the client.

This must be backported up to 2.4 after a period of observation.

(cherry picked from commit 7a5a30d28a3ee100c62603f7212cc1b313c53311)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
reg-tests/http-messaging/protocol_upgrade.vtc
src/h2.c