]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: add a function to reset the svcctx of an applet
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Aug 2022 16:13:34 +0000 (18:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Aug 2022 16:16:36 +0000 (18:16 +0200)
commit1cc08a33e17ca9c72204af84ecaa0c87e6d1f066
tree7ef2bdd586400da37a5d02e647274d403b97f9bd
parent115ccce867c76723f99472f92b1e58d5c6ea4865
MINOR: applet: add a function to reset the svcctx of an applet

The CLI needs to reset the svcctx between commands, and there was nothing
done to handle this. Let's add appctx_reset_svcctx() to do that, it's the
closing equivalent of appctx_reserve_svcctx().

This will have to be backported to 2.6 as it will be used by a subsequent
patch to fix a bug.
include/haproxy/applet.h
src/applet.c