]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: define applet_putchk_stress() alternative
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Nov 2024 16:15:15 +0000 (17:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Dec 2024 10:26:33 +0000 (11:26 +0100)
commit1f458b3ea8ec156d09ed87439784d145d0e13809
tree189c375ba37be71495aff5cb65e322577ace0dec
parent9d19fc4cf752f1e22ba8b810328ecb04be34a6a2
MINOR: applet: define applet_putchk_stress() alternative

Previous patch introduced stress mode to be able to easily test
alternative code paths.

The first point would be to force interruption of stats dump on every
line and check reentrant patchs, in particular while adding and removing
servers instances.

The purpose of this patch is to be able to use applet_putchk_stress()
during stats dump while not impacting other applets. To support this,
extract applet_putchk() into an internal _applet_putchk() which have a
new argument stress. Define two helpers applet_putchk() and
applet_putchk_stress(), the latter to set the stress argument to true.

For the moment, applet_putchk_stress() is not used. This will be the
subject of the next patch.
include/haproxy/applet.h