dovecot-2.0: dsync: Make sure MSG-GET command doesn't hang.

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 26 00:23:03 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/601065674f74
changeset: 12355:601065674f74
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 25 22:22:48 2010 +0100
description:
dsync: Make sure MSG-GET command doesn't hang.

diffstat:

 src/dsync/dsync-proxy-server-cmd.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r a408c08784bc -r 601065674f74 src/dsync/dsync-proxy-server-cmd.c
--- 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


More information about the dovecot-cvs mailing list