]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: Add a function to finalize frontend appctx startup
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 May 2022 13:15:53 +0000 (15:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 May 2022 14:13:21 +0000 (16:13 +0200)
commit8718c95c0a97bf656d826e1f8663c0ecedb1ddd2
treecbb99aeaa266f9d34bc2da09794083585f87bf7b
parent16c0d9cda0b4b4e148bbc1f2da0ac39ea26220ae
MINOR: applet: Add a function to finalize frontend appctx startup

appctx_finalize_startup() may be used to finalize the frontend appctx
startup. It is responsible to create the appctx's session and the frontend
conn-stream. On error, it is the caller responsibility to release the
appctx. However, the session is released if it was created. On success, if
an error is encountered in the caller function, the stream must be released
instead of the appctx.

This function should ease the init stage when new appctx is created.
include/haproxy/applet.h
src/applet.c