]> git.kaiwu.me - haproxy.git/commit
MINOR: server: ensure check-reuse-pool is init in srv_settings_init()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Jul 2026 09:32:27 +0000 (11:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Jul 2026 13:21:35 +0000 (15:21 +0200)
commit41d2f146f6630de1d4be11a830a1de5af91af5b6
tree13c66311949d412d8907ef034a4b41892bab2e3c
parent4e8cf9128a3dc07988f049f977739f08f2dc33bd
MINOR: server: ensure check-reuse-pool is init in srv_settings_init()

For rHTTP servers, check-reuse-pool is forcefully set on them, else
checks would always fail. This initialization was performed in
_srv_parse_init().

Move this force init in srv_settings_init(). This is a better place as
_srv_parse_init() should only perform minimal configuration, mostly
related to server address. Then srv_settings_init() is called with the
task to set every fields to suitable default values before keywords
parsing.

Also, this ensures that check-reuse-pool is set to 0 for non rHTTP
servers. This is not strictly required though as server structure is
calloc'ed.
src/server.c