BUG/MINOR: cli: be sure to always warn the cli applet when input buffer is full
[wt: may only strike if CLI commands are pipelined. Must be backported to 1.7 and 1.6, where it's a bit different and in dumpstats.c]
This commit is contained in:
parent
1821d3c25e
commit
90b5abe46e
|
@ -3536,9 +3536,10 @@ static int cli_parse_get_weight(char **args, struct appctx *appctx, void *privat
|
|||
|
||||
/* return server's effective weight at the moment */
|
||||
snprintf(trash.str, trash.size, "%d (initial %d)\n", sv->uweight, sv->iweight);
|
||||
if (bi_putstr(si_ic(si), trash.str) == -1)
|
||||
if (bi_putstr(si_ic(si), trash.str) == -1) {
|
||||
si_applet_cant_put(si);
|
||||
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue