]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: deinit: add a "quick-exit" option to bypass the deinit step
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Nov 2022 08:34:07 +0000 (09:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Nov 2022 08:37:09 +0000 (09:37 +0100)
commite98d3858197c774db532dcac5fe9d7a1b24fb761
treed8336e19e61af875536433a7f17fc5f57513d4f2
parent16d6c0cb0935f94859f56ff015743d6c3e77cb60
MINOR: deinit: add a "quick-exit" option to bypass the deinit step

Once in a while we spot a bug in the deinit code that is complex,
especially when it has to deal with incomplete initializations, and the
ability to bypass this step has regularly been raised. In addition for
fast-reloading setups it could theoretically save some time. Tests have
shown that very large configs can barely save ~100-150ms by skipping the
deinit step. However the ability not to crash if a bug is encountered can
occasionally help.

This patch adds an option to do exactly this. It's obviously not enabled
by default and the documentation discourages from using it, but this might
be useful in the future.
doc/configuration.txt
include/haproxy/global-t.h
src/cfgparse-global.c
src/haproxy.c