dovecot-2.2: lmtp proxy: Reset timeout each time receiving a rep...

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 10 05:24:39 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/27dccff46fe9
changeset: 14764:27dccff46fe9
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 02 10:05:46 2012 +0300
description:
lmtp proxy: Reset timeout each time receiving a reply lin for DATA.
This avoids timing out when there are a lot of RCPT TOs.

diffstat:

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

diffs (13 lines):

diff -r e009aaf19934 -r 27dccff46fe9 src/lmtp/lmtp-proxy.c
--- a/src/lmtp/lmtp-proxy.c	Mon Jul 02 08:06:19 2012 +0300
+++ b/src/lmtp/lmtp-proxy.c	Mon Jul 02 10:05:46 2012 +0300
@@ -229,6 +229,9 @@
 	i_assert(!rcpt->rcpt_to_failed);
 	i_assert(rcpt->reply != NULL);
 
+	/* reset timeout in case there are a lot of RCPT TOs */
+	timeout_reset(conn->to);
+
 	rcpt->reply = p_strdup(conn->proxy->pool, reply);
 	rcpt->data_reply_received = TRUE;
 


More information about the dovecot-cvs mailing list