]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: haterm: enable h3 for TCP bindings
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 26 May 2026 08:38:20 +0000 (10:38 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Tue, 26 May 2026 08:56:18 +0000 (10:56 +0200)
Add "h3" as ALPN identifier to be supported by TCP "bind" lines. So, QMUX is
transparently enabled for such bindings.

src/haterm_init.c

index e77872126fb13ffea3bef8b09127f408a5f91447..4b9e0878639b1afc39ffe75bde8488725f66c6a9 100644 (file)
@@ -401,7 +401,7 @@ void haproxy_init_args(int argc, char **argv)
 
                                        /* SSL/TCP binding */
                                        hbuf_appendf(&fbuf, "\tbind %s:%s shards by-thread ssl "
-                                                    "alpn h2,http1.1,http1.0"
+                                                    "alpn h3,h2,http1.1,http1.0"
                                                     " crt " HATERM_RSA_CERT_NAME
                                                     " crt " HATERM_ECDSA_CERT_NAME "%s%s\n",
                                                     ip, port2,
@@ -438,6 +438,7 @@ void haproxy_init_args(int argc, char **argv)
                }
                hbuf_appendf(&gbuf, "global\n");
                hbuf_appendf(&gbuf, "\ttune.memory.hot-size 3145728\n");
+               hbuf_appendf(&gbuf, "\texpose-experimental-directives\n");
        }
 
        /* "global" section */