]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: applet: Emit a warning when a legacy applet is spawned
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Jul 2025 13:44:47 +0000 (15:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Jul 2025 13:53:33 +0000 (15:53 +0200)
commitb8d5307bd9b34e0f13012ba4e656c01e1d273c27
tree9d447607550496c94d08fa9b97fd3fcea2c06472
parent337768656b8ef60c938c6f5d6e94a111aa9dff02
MEDIUM: applet: Emit a warning when a legacy applet is spawned

To motivate developers to support the new applets API, a warning is now
emitted when a legacy applet is spawned. To not flood users, this warning is
only emitted once per legacy applet. To do so, the applet flag
APPLET_FL_WARNED was added. It is set when the warning is emitted.

Note that test and set on this flag are not performed via atomic operations.
So it is possible to have more than one warning for a given applet if it is
spawned in same time on several threads. At worrst, there is one warning per
thread.
include/haproxy/applet-t.h
src/applet.c