MINOR: server: implement a refcount for dynamic servers
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Aug 2021 13:50:00 +0000 (15:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Aug 2021 09:09:48 +0000 (11:09 +0200)
commitd6b7080cecee3450bbad8fbd5d9b100be0a2d13d
tree524ee77b7cc7a127fbbc39163d6ed8761797a8e3
parent403dce8e5a912bb3d2d78b62e3252b294d894de5
MINOR: server: implement a refcount for dynamic servers

It is necessary to have a refcount mechanism on dynamic servers to be
able to enable check support. Indeed, when deleting a dynamic server
with check activated, the check will be asynchronously removed. This is
mandatory to properly free the check resources in a thread-safe manner.
The server instance must be kept alive for this.
include/haproxy/server-t.h
src/server.c