mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-07 07:42:49 -04:00
BUG/MEDIUM: log: Eat output data when waiting for appctx shutdown
When the log applet is executed while a shut is pending, the remaining output data must always be consumed. Otherwise, this can prevent the stream to exit, leading to a spinning loop on the applet. It is 2.8-specific. No backport needed.
This commit is contained in:
parent
9837bd86dc
commit
211452ef9a
1 changed files with 3 additions and 1 deletions
|
|
@ -3577,8 +3577,10 @@ static void syslog_io_handler(struct appctx *appctx)
|
|||
char *message;
|
||||
size_t size;
|
||||
|
||||
if (unlikely(se_fl_test(appctx->sedesc, (SE_FL_EOS|SE_FL_ERROR|SE_FL_SHR|SE_FL_SHW))))
|
||||
if (unlikely(se_fl_test(appctx->sedesc, (SE_FL_EOS|SE_FL_ERROR|SE_FL_SHR|SE_FL_SHW)))) {
|
||||
co_skip(sc_oc(sc), co_data(sc_oc(sc)));
|
||||
goto out;
|
||||
}
|
||||
|
||||
max_accept = l->bind_conf->maxaccept ? l->bind_conf->maxaccept : 1;
|
||||
while (co_data(sc_oc(sc))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue