]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: applet: Add support for async appctx startup on a thread subset
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 May 2022 15:15:31 +0000 (17:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 May 2022 14:13:22 +0000 (16:13 +0200)
commitd9c1d33fa10769fef2aa60b5562f705ed27115e3
treea3108ad67393f5dcf57a18506b6cafe14776ca5f
parent6095d57701cddd07e901bde214f066ff9c40bdda
MEDIUM: applet: Add support for async appctx startup on a thread subset

It is now possible to start an appctx on a thread subset. Some controls were
added here and there. It is forbidden to start a backend appctx on another
thread than the local one. If a frontend appctx is started on another thread
or a thread subset, the applet .init callback function must be defined. This
callback function is responsible to finalize the appctx startup. It can be
performed synchornously. In this case, the appctx is started on the local
thread. It is not really useful but it is valid. Or it can be performed
asynchronously. In this case, .init callback function is called when the
appctx is woken up for the first time. When this happens, the appctx
affinity is set to the current thread to be able to start the session and
the stream.
include/haproxy/applet.h
src/applet.c