]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connections: Use both mux_proto and alpn to pick a mux
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 19 May 2026 13:52:21 +0000 (15:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 19 May 2026 16:33:54 +0000 (18:33 +0200)
commit6aab6d4e980ef0a11f0536f72a39b6a6b8e3fa17
tree5547f3e1d1654d0c9904b1616d4916f7ba4a5b66
parent022681eca222a10139cf4d4bc4e828f6f6fb840f
MEDIUM: connections: Use both mux_proto and alpn to pick a mux

In conn_get_best_mux() and conn_get_best_mux_entry(), the mux name was
provided sometimes based on the "proto" directive, sometimes based on
the ALPN, but in any case, it was compared again the mux_proto_list
mux_proto field. This is not correct, as ALPN can be different from the
internal mux_proto. So enhance those functions so that they wll accept
an ALPN as well. If a mux_proto is provided, that will be used, if not,
and if an ALPN is provided, then that will be used, and compared against
the ALPN provided by the mux, if any.
include/haproxy/connection.h
src/connection.c
src/proxy.c
src/server.c
src/stream.c
src/tcpcheck.c