mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-20 02:28:31 +02:00
MINOR: channel/applets: Stop to test CF_WRITE_ERROR flag if CF_SHUTW is enough
In applets, we stop processing when a write error (CF_WRITE_ERROR) or a shutdown for writes (CF_SHUTW) is detected. However, any write error leads to an immediate shutdown for writes. Thus, it is enough to only test if CF_SHUTW is set.
This commit is contained in:
@@ -1227,7 +1227,7 @@ static int cli_io_handler_show_env(struct appctx *appctx)
|
||||
struct stconn *sc = appctx_sc(appctx);
|
||||
char **var = ctx->var;
|
||||
|
||||
if (unlikely(sc_ic(sc)->flags & (CF_WRITE_ERROR|CF_SHUTW)))
|
||||
if (unlikely(sc_ic(sc)->flags & CF_SHUTW))
|
||||
return 1;
|
||||
|
||||
chunk_reset(&trash);
|
||||
@@ -1264,7 +1264,7 @@ static int cli_io_handler_show_fd(struct appctx *appctx)
|
||||
int fd = fdctx->fd;
|
||||
int ret = 1;
|
||||
|
||||
if (unlikely(sc_ic(sc)->flags & (CF_WRITE_ERROR|CF_SHUTW)))
|
||||
if (unlikely(sc_ic(sc)->flags & CF_SHUTW))
|
||||
goto end;
|
||||
|
||||
chunk_reset(&trash);
|
||||
|
||||
Reference in New Issue
Block a user