]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: check: delay MUX init when SSL ALPN is used
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 30 Oct 2025 10:08:21 +0000 (11:08 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 14 Nov 2025 08:49:04 +0000 (09:49 +0100)
commitd12971dfea8e4eefe831dde2b7fc6134dff292d1
treeab6aa88d005b17fb2d09028ca15c4bf93d4c49cd
parent1d46c086894d4a32809aa09088414410407129ee
MINOR: check: delay MUX init when SSL ALPN is used

When instantiating a new connection for check, its MUX may be
initialized early. This was not performed though if SSL ALPN negotiation
will be used, except if check MUX is already fixed.

However, this method of initialization is problematic when QUIC MUX is
used. Indeed, this multiplexer must only be instantiated after the above
application protocol is known, which is derived from the ALPN
negotiation. If this is not the case a crash will occur in qmux_init().

In fact, a similar problem was already encountered for normal traffic.
Thus, a change was performed in connect_server() : MUX early
initialization is now always skipped if SSL ALPN negotiation is active,
even if MUX is already fixed. This patch introduces a similar change for
checks.

Without this patch, it is not possible to perform check on QUIC servers
as expected. Indeed, when http-check ruleset is active a crash would
occur prior to it.
src/tcpcheck.c