From: Amaury Denoyelle Date: Tue, 21 Jul 2026 14:04:18 +0000 (+0200) Subject: MINOR: proxy: stress "show errors" handler X-Git-Tag: v3.5-dev4~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e3a848409d96a8decc475aab8c2555399793068;p=thirdparty%2Fhaproxy.git MINOR: proxy: stress "show errors" handler Implement stress function for "show errors" output. This forces the command to yield on every newly dumped instance, which is useful for debugging. --- diff --git a/src/proxy.c b/src/proxy.c index 85878f9b8..f3d705fd9 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -5414,8 +5414,10 @@ static int cli_io_handler_show_errors(struct appctx *appctx) chunk_appendf(&trash, " \n"); - if (applet_putchk(appctx, &trash) == -1) + if (STRESS_RUN1(applet_putchk_stress(appctx, &trash) == -1, + applet_putchk(appctx, &trash) == -1)) { goto cant_send_unlock; + } ctx->ptr = 0; ctx->ev_id = es->ev_id; @@ -5443,8 +5445,10 @@ static int cli_io_handler_show_errors(struct appctx *appctx) goto cant_send_unlock; } - if (applet_putchk(appctx, &trash) == -1) + if (STRESS_RUN1(applet_putchk_stress(appctx, &trash) == -1, + applet_putchk(appctx, &trash) == -1)) { goto cant_send_unlock; + } ctx->ptr = newptr; ctx->bol = newline;