]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: server: fix check reuse-pool in srv_settings_cpy()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Jul 2026 08:42:37 +0000 (10:42 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Jul 2026 13:21:35 +0000 (15:21 +0200)
commiteeb67364c8d9ea5390353345ae9b7912b09c1024
tree841f9b1f1e8213e87d50f85eda004705fd88f0bc
parent41d2f146f6630de1d4be11a830a1de5af91af5b6
BUG/MINOR: server: fix check reuse-pool in srv_settings_cpy()

<reuse_pool> may be set on check to instruct that connection reuse may
be performed for server health checks.

As expected, this field is duplicated in srv_settings_cpy(). However,
there is an exception for rHTTP servers as in this case check-reuse-pool
must be forcefully activated, as performed in srv_settings_init(). Thus,
the value was not copied to avoid changing it to 0.

This causes a configuration issue with rHTTP on server-template though.
In this case, check-reuse-pool is not set for duplicated server
instances as srv_settings_init() is not called for them. This causes
checks to always fail for such entries.

Fix this by forcing check-reuse-pool for rHTTP in srv_settings_cpy(),
and duplicate the values for other servers.

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