dovecot-2.2: dsync: Reset I/O timeout every time when receiving ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 10 11:00:02 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/647162da8423
changeset: 17777:647162da8423
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 10 13:59:31 2014 +0300
description:
dsync: Reset I/O timeout every time when receiving input.
This could have caused unwanted I/O timeouts when receiving large mails.

diffstat:

 src/doveadm/dsync/dsync-ibc-stream.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r be21e17813d4 -r 647162da8423 src/doveadm/dsync/dsync-ibc-stream.c
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Tue Sep 09 17:26:52 2014 -0600
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Wed Sep 10 13:59:31 2014 +0300
@@ -190,6 +190,7 @@
 
 static void dsync_ibc_stream_input(struct dsync_ibc_stream *ibc)
 {
+	timeout_reset(ibc->to);
 	if (ibc->value_input != NULL) {
 		if (dsync_ibc_stream_read_mail_stream(ibc) == 0)
 			return;


More information about the dovecot-cvs mailing list