Since the CLI was updated to use the new applet API, it should no longer set
directly the SE flags. Instead, the corresponding applet flags must be set,
using the applet API (appet_set_*). It is true for the CLI I/O handler but also
for the commands parse function and I/O callback function.
This patch should be backported as far as 3.0.
(cherry picked from commit
7e927243b9e86cee13ea9c16077a8523e79e41bb)
Signed-off-by: Willy Tarreau <w@1wt.eu>
}
break;
default: /* abnormal state */
- se_fl_set(appctx->sedesc, SE_FL_ERROR);
+ applet_set_error(appctx);
break;
}
ha_warning("Cannot make the unix socket non-blocking\n");
goto out;
}
- se_fl_set(appctx->sedesc, SE_FL_EOI);
+ applet_set_eoi(appctx);
appctx->st0 = CLI_ST_END;
free(cmsgbuf);
free(tmpbuf);
appctx->st1 ^= APPCTX_CLI_ST1_PROMPT;
else if (*args[0] == 'q') {
/* quit */
- se_fl_set(appctx->sedesc, SE_FL_EOI);
+ applet_set_eoi(appctx);
appctx->st0 = CLI_ST_END;
}