]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: check: do not delay MUX for ALPN if SSL not active
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 9 Sep 2025 12:27:24 +0000 (14:27 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 9 Sep 2025 14:55:09 +0000 (16:55 +0200)
commitfee3bd48b414c88f7e5abc37775f944aa94c808b
tree9bd5db56ae6716996cac788c8cf08639fe084788
parent536d2aafa397f625897a0054b53d96cb9d614fcd
OPTIM: check: do not delay MUX for ALPN if SSL not active

To ensure ALPN is properly applied on checks, MUX initialization is
delayed so that it is created on SSL handshake completion. However, this
does not check if SSL is really active for the connection.

This patch adjusts the condition so that MUX init is not delayed if SSL
is not active for the check connection. A similar process is already
conducted for normal connections via connect_server().

This must be backported up to 2.4. Despite not being a bug, it must be
backported for the following patch which fixes check ALPN inheritance
from server settings.
src/tcpcheck.c