]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: check: ensure check-reuse is compatible with SSL
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Sep 2025 12:28:58 +0000 (14:28 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Sep 2025 14:54:48 +0000 (16:54 +0200)
commit6d3c3c78719cdd2bd0b271c2ef25b53e47e2d8d2
treea4ec988fede0d578011ecc09f6a023b4db787abf
parentf32bc8f0a445341e3f88c56303d92b2378c7920f
BUG/MINOR: check: ensure check-reuse is compatible with SSL

SSL may be activated implicitely if a server relies on SSL, even without
check-ssl keyword. This is performed by init_srv_check() function. The
main operation is to change xprt layer for check to SSL.

Prior to this patch, <use_ssl> check member was also set, despite not
strictly necessary. This has a negative side-effect of rendering
check-reuse-pool ineffective. Indeed, reuse on check is only performed
if no specific check configuration has been specified (see
tcpcheck_use_nondefault_connect()).

This patch fixes check reuse with SSL : <use_ssl> is not set in case SSL
is inherited implicitely from server configuration. Thus, <use_ssl> is
now only set if an explicit check-ssl keyword is set, which disables
connection reuse for check.

This must be backported up to 3.2.
src/check.c