Skip to content

Commit

Permalink
imap: Flush response to client before starting possibly long operation
Browse files Browse the repository at this point in the history
Fixes Error: Timeout communicating with /var/run/dovecot/imap-master (version received)
  • Loading branch information
cmouse authored and villesavolainen committed Aug 16, 2017
1 parent 4702aae commit 357c3b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imap/imap-master-client.c
Expand Up @@ -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() */
Expand Down

0 comments on commit 357c3b5

Please sign in to comment.