Mercurial > dovecot > core-2.2
changeset 22433:47389f0e1827
imap: Flush response to client before starting possibly long operation
Fixes Error: Timeout communicating with /var/run/dovecot/imap-master (version received)
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Wed, 26 Jul 2017 19:47:16 +0300 |
parents | aff38b5d7f1f |
children | 339d2a356620 |
files | src/imap/imap-master-client.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-master-client.c Mon Aug 14 15:44:24 2017 +0300 +++ b/src/imap/imap-master-client.c Wed Jul 26 19:47:16 2017 +0300 @@ -217,6 +217,7 @@ 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() */