From: Willy Tarreau Date: Tue, 5 May 2026 09:40:29 +0000 (+0200) Subject: BUG/MINOR: mux-h2: condition the processing of 8441 extension to global setting X-Git-Tag: v3.4-dev11~52 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=9986ad65a4af0b5e4212f1d12e108090490a8c2d;p=haproxy.git BUG/MINOR: mux-h2: condition the processing of 8441 extension to global setting When rfc8441 (extended connect) is disabled via h2-workaround-bogus-websocket-clients, we properly refrain from advertising support for extended connect, but we should also ignore the incoming setting, otherwise it can remain enabled if the client advertises it. This should be backported to stable versions. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 1c720a44d..61e7db54b 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -2935,7 +2935,8 @@ static int h2c_handle_settings(struct h2c *h2c) } break; case H2_SETTINGS_ENABLE_CONNECT_PROTOCOL: - if (arg == 1) + /* setting only considered if rfc8441 not disabled */ + if (arg == 1 && !(global.tune.options & GTUNE_DISABLE_H2_WEBSOCKET)) h2c->flags |= H2_CF_RCVD_RFC8441; break; }