Update handlers for "show backend" and "show servers state/conn" so that
stress mode can be used to force the task yielding each time a new
instance is dumped.
This is useful for debugging commands safety with backend/server
deletion in parallel.
#include <haproxy/stats.h>
#include <haproxy/stconn.h>
#include <haproxy/stream.h>
#include <haproxy/stats.h>
#include <haproxy/stconn.h>
#include <haproxy/stream.h>
+#include <haproxy/stress.h>
#include <haproxy/task.h>
#include <haproxy/tcpcheck.h>
#include <haproxy/thread.h>
#include <haproxy/task.h>
#include <haproxy/tcpcheck.h>
#include <haproxy/thread.h>
chunk_appendf(&trash, "\n");
}
chunk_appendf(&trash, "\n");
}
- if (applet_putchk(appctx, &trash) == -1) {
+ if (STRESS_RUN1(applet_putchk_stress(appctx, &trash) == -1,
+ applet_putchk(appctx, &trash) == -1)) {
continue;
chunk_appendf(&trash, "%s\n", curproxy->id);
continue;
chunk_appendf(&trash, "%s\n", curproxy->id);
- if (applet_putchk(appctx, &trash) == -1)
+ if (STRESS_RUN1(applet_putchk_stress(appctx, &trash) == -1,
+ applet_putchk(appctx, &trash) == -1)) {