dovecot-2.0: dsync: Avoid hanging when saving messages.

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 7 19:35:16 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/33cd03255c94
changeset: 12668:33cd03255c94
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 07 19:35:09 2011 +0200
description:
dsync: Avoid hanging when saving messages.

diffstat:

 src/dsync/dsync-proxy-client.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 2cb0fb910441 -r 33cd03255c94 src/dsync/dsync-proxy-client.c
--- a/src/dsync/dsync-proxy-client.c	Mon Mar 07 01:00:28 2011 +0200
+++ b/src/dsync/dsync-proxy-client.c	Mon Mar 07 19:35:09 2011 +0200
@@ -364,8 +364,10 @@
 		/* proxy_client_worker_msg_save() hasn't finished yet. */
 		o_stream_cork(worker->output);
 		proxy_client_send_stream(worker);
-		if (worker->save_input != NULL)
-			return 1;
+		if (worker->save_input != NULL) {
+			/* still unfinished, make sure we get called again */
+			return 0;
+		}
 	}
 
 	if (worker->worker.output_callback != NULL)


More information about the dovecot-cvs mailing list