MINOR: mux_h2: define config to disable h2 websocket support
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 9 Jul 2021 15:14:30 +0000 (17:14 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 12 Jul 2021 08:41:45 +0000 (10:41 +0200)
commitbefeae88e8c7e2cbc19a63420bfa7d67ec176342
tree9a53d2ae0690bf013982637a29e22a3acd682005
parentb60fb8d5be9122c16b0fb416dc2500b87d541497
MINOR: mux_h2: define config to disable h2 websocket support

Define a new global config statement named
"h2-workaround-bogus-websocket-clients".

This statement will disable the automatic announce of h2 websocket
support as specified in the RFC8441. This can be use to overcome clients
which fail to implement the relatively fresh RFC8441. Clients will in
his case automatically downgrade to http/1.1 for the websocket tunnel
if the haproxy configuration allows it.

This feature is relatively simple and can be backported up to 2.4, which
saw the introduction of h2 websocket support.
doc/configuration.txt
include/haproxy/global-t.h
src/cfgparse-global.c
src/mux_h2.c