]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: add and use srv_init() function
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 9 May 2025 18:27:29 +0000 (20:27 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 2 Jun 2025 15:51:33 +0000 (17:51 +0200)
commit368d01361a398996faa82047ce75c2298072d4fa
tree2a286ce8226388d3ca0425c1570d414ef6cf1428
parent889ef6f67b39a29a68107513d8816b34b2a51915
MEDIUM: server: add and use srv_init() function

rename _srv_postparse() internal function to srv_init() function and group
srv_init_per_thr() plus idle conns list init inside it. This way we can
perform some simplifications as srv_init() performs multiple server
init steps after parsing.

SRV_F_CHECKED flag was added, it is automatically set when srv_init()
runs successfully. If the flag is already set and srv_init() is called
again, nothing is done. This permis to manually call srv_init() earlier
than the default POST_CHECK hook when needed without risking to do things
twice.
include/haproxy/server-t.h
include/haproxy/server.h
src/cfgparse.c
src/server.c
src/sink.c