diff --git a/src/cli.c b/src/cli.c index 1d80b7602..c890eb3f8 100644 --- a/src/cli.c +++ b/src/cli.c @@ -3230,10 +3230,12 @@ int pcli_wait_for_response(struct stream *s, struct channel *rep, int an_bit) s->store_count = 0; s->uniq_id = _HA_ATOMIC_FETCH_ADD(&global.req_count, 1); - s->scf->flags &= ~(SC_FL_EOS|SC_FL_ERROR|SC_FL_ABRT_DONE|SC_FL_ABRT_WANTED); + s->scf->flags &= ~(SC_FL_EOI|SC_FL_EOS|SC_FL_ERROR|SC_FL_ABRT_DONE|SC_FL_ABRT_WANTED); s->scf->flags &= ~SC_FL_SND_NEVERWAIT; s->scf->flags |= SC_FL_RCV_ONCE; /* one read is usually enough */ + se_have_more_data(s->scf->sedesc); + s->req.flags |= CF_WAKE_ONCE; /* need to be called again if there is some command left in the request */ s->res.analysers &= ~AN_RES_WAIT_CLI;