dovecot-2.0: imap: Don't hang if client sends IDLE + DONE pipeli...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 1 19:55:20 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/c7b351d415d9
changeset: 12061:c7b351d415d9
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 01 17:52:33 2010 +0100
description:
imap: Don't hang if client sends IDLE + DONE pipelined.

diffstat:

 src/imap/cmd-idle.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 4d9768fd1a55 -r c7b351d415d9 src/imap/cmd-idle.c
--- a/src/imap/cmd-idle.c	Wed Sep 01 17:48:04 2010 +0100
+++ b/src/imap/cmd-idle.c	Wed Sep 01 17:52:33 2010 +0100
@@ -90,7 +90,7 @@
 			break;
 		}
 	}
-	if (!client->disconnected)
+	if (!client->disconnected && !client->handling_input)
 		client_continue_pending_input(client);
 }
 
@@ -260,5 +260,6 @@
 	   added mailbox-notifier, we wouldn't see them otherwise. */
 	if (client->mailbox != NULL)
 		idle_sync_now(client->mailbox, ctx);
+	idle_client_input_more(ctx);
 	return FALSE;
 }


More information about the dovecot-cvs mailing list