]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: Support per-proxy and per-server deinit functions callbacks
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 31 Jul 2019 06:44:12 +0000 (08:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Sep 2019 08:18:54 +0000 (10:18 +0200)
commit3ea5cbe6a414e798b091715ae15f433c5f7f4856
treee2a4ac9635e51c3cee49699c15e6e53775c97f31
parente3d2a877fb7ee92adf4285d29c4611825c3c1338
MINOR: config: Support per-proxy and per-server deinit functions callbacks

Most of times, when any allocation is done during configuration parsing because
of a new keyword in proxy section or on the server line, we must add a call in
the deinit() function to release allocated ressources. It is now possible to
register a post-deinit callback because, at this stage, the proxies and the
servers are already releases.

Now, it is possible to register deinit callbacks per-proxy or per-server. These
callbacks will be called for each proxy and server before releasing them.
include/types/global.h
src/haproxy.c