dovecot-2.1: imapc: Crashfix after having idled for 29 mins with...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 22 11:28:45 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/da07002ca0d4
changeset: 13745:da07002ca0d4
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 22 11:28:33 2011 +0200
description:
imapc: Crashfix after having idled for 29 mins without IDLE.

diffstat:

 src/lib-imap-client/imapc-connection.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 8132fb8ee3eb -r da07002ca0d4 src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c	Tue Nov 22 00:12:53 2011 +0200
+++ b/src/lib-imap-client/imapc-connection.c	Tue Nov 22 11:28:33 2011 +0200
@@ -1248,6 +1248,12 @@
 }
 
 static void
+imapc_noop_callback(const struct imapc_command_reply *reply ATTR_UNUSED,
+		    void *context ATTR_UNUSED)
+{
+}
+
+static void
 imapc_reidle_callback(const struct imapc_command_reply *reply ATTR_UNUSED,
 		      void *context)
 {
@@ -1261,7 +1267,7 @@
 	struct imapc_command *cmd;
 
 	if (!conn->idling)
-		cmd = imapc_connection_cmd(conn, NULL, NULL);
+		cmd = imapc_connection_cmd(conn, imapc_noop_callback, NULL);
 	else
 		cmd = imapc_connection_cmd(conn, imapc_reidle_callback, conn);
 	imapc_command_send(cmd, "NOOP");


More information about the dovecot-cvs mailing list