]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: use stress mode to force reentrant dumps
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Nov 2024 16:15:47 +0000 (17:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Dec 2024 10:26:33 +0000 (11:26 +0100)
commitee7241ed1872dec9dbe14fb15083f840a2b6a40a
treec2f37bbed49d9db2b7a1b4a77edc11a671d8d719
parent1f458b3ea8ec156d09ed87439784d145d0e13809
MINOR: stats: use stress mode to force reentrant dumps

Provide alternative code during stats dump when stress mode is active.
The objective is to force the applet to yield on every output line. This
allows to easily test reentrant code paths, in particular while adding
and removing server instances.

To support this, output is interrupted every time the output buffer (or
its equivalent) is not empty. Use COND_STRESS() macro to provide default
and stress alternative conditions.
src/stats.c