dovecot-2.1: lmtp: Don't idle-timeout LMTP client while proxying...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jul 2 10:09:21 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/8a97daa8aff6
changeset: 14587:8a97daa8aff6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 02 10:09:15 2012 +0300
description:
lmtp: Don't idle-timeout LMTP client while proxying waits for DATA replies.

diffstat:

 src/lmtp/commands.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 27dccff46fe9 -r 8a97daa8aff6 src/lmtp/commands.c
--- a/src/lmtp/commands.c	Mon Jul 02 10:05:46 2012 +0300
+++ b/src/lmtp/commands.c	Mon Jul 02 10:09:15 2012 +0300
@@ -771,6 +771,9 @@
 	struct istream *input;
 	bool ret = TRUE;
 
+	/* stop handling client input until saving/proxying is finished */
+	if (client->to_idle != NULL)
+		timeout_remove(&client->to_idle);
 	io_remove(&client->io);
 	i_stream_destroy(&client->dot_input);
 


More information about the dovecot-cvs mailing list