dovecot-2.1: imapc: Switch connection output streams' ioloop whe...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 7 11:03:42 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/31471ce338ab
changeset: 13419:31471ce338ab
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 07 11:03:33 2011 +0300
description:
imapc: Switch connection output streams' ioloop when needed.
This fixes hangs when output stream got full.

diffstat:

 src/lib-storage/index/imapc/imapc-connection.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r d96c03d7eeef -r 31471ce338ab src/lib-storage/index/imapc/imapc-connection.c
--- a/src/lib-storage/index/imapc/imapc-connection.c	Wed Sep 07 11:02:55 2011 +0300
+++ b/src/lib-storage/index/imapc/imapc-connection.c	Wed Sep 07 11:03:33 2011 +0300
@@ -148,6 +148,8 @@
 		conn->io = io_loop_move_io(&conn->io);
 	if (conn->to != NULL)
 		conn->to = io_loop_move_timeout(&conn->to);
+	if (conn->output != NULL)
+		o_stream_switch_ioloop(conn->output);
 }
 
 static const char *imapc_command_get_readable(struct imapc_command *cmd)


More information about the dovecot-cvs mailing list