Mercurial > dovecot > core-2.2
changeset 12355:601065674f74
dsync: Make sure MSG-GET command doesn't hang.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Oct 2010 22:22:48 +0100 |
parents | a408c08784bc |
children | b7511f567d2e |
files | src/dsync/dsync-proxy-server-cmd.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dsync/dsync-proxy-server-cmd.c Mon Oct 25 22:13:05 2010 +0100 +++ b/src/dsync/dsync-proxy-server-cmd.c Mon Oct 25 22:22:48 2010 +0100 @@ -511,6 +511,11 @@ /* then we'll still have to send the message body. */ server->get_input = data->input; cmd_msg_get_send_more(server); + if (server->get_input == NULL) { + /* if we came here from ioloop, make sure the command gets + freed in the output flush callback */ + o_stream_set_flush_pending(server->output, TRUE); + } } static int