mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-06 04:33:23 +02:00
MEDIUM: httpclient: Don't close CLI applet at the end of a response
There is no reason to close the CLI applet when the whole response was dumped. This prevent anyone to use the CLI in interactive mode.
This commit is contained in:
@@ -235,15 +235,16 @@ static int hc_cli_io_handler(struct appctx *appctx)
|
||||
|
||||
/* we must close only if F_END is the last flag */
|
||||
if (ctx->flags == HC_CLI_F_RES_END) {
|
||||
sc_shutw(sc);
|
||||
sc_shutr(sc);
|
||||
ctx->flags &= ~HC_CLI_F_RES_END;
|
||||
goto end;
|
||||
}
|
||||
|
||||
more:
|
||||
if (!ctx->flags)
|
||||
applet_have_no_more_data(appctx);
|
||||
return 0;
|
||||
end:
|
||||
return 1;
|
||||
|
||||
too_many_hdrs:
|
||||
return cli_err(appctx, "Too many headers.\n");
|
||||
|
||||
Reference in New Issue
Block a user