From: Aki Tuomi Date: Wed, 26 Jul 2017 16:47:16 +0000 (+0300) Subject: imap: Flush response to client before starting possibly long operation X-Git-Tag: 2.2.32.rc2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9fc39fe95941be50c721f4f52163f318d83d483;p=thirdparty%2Fdovecot%2Fcore.git imap: Flush response to client before starting possibly long operation Fixes Error: Timeout communicating with /var/run/dovecot/imap-master (version received) --- diff --git a/src/imap/imap-master-client.c b/src/imap/imap-master-client.c index 9f311d512a..e00b463186 100644 --- a/src/imap/imap-master-client.c +++ b/src/imap/imap-master-client.c @@ -217,6 +217,7 @@ imap_master_client_input_args(struct connection *conn, const char *const *args, potentially a long time. imap-hibernate process is waiting for us to answer. Even if we fail later, we log the error anyway. */ o_stream_nsend_str(conn->output, "+\n"); + (void)o_stream_flush(conn->output); /* NOTE: before client_create_from_input() on failures we need to close fd_client, but afterward it gets closed by client_destroy() */