dovecot: Reset idle timeout also in APPEND/IDLE.

dovecot at dovecot.org dovecot at dovecot.org
Sun Jan 6 07:09:52 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/0861436bfe14
changeset: 7126:0861436bfe14
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jan 06 07:09:33 2008 +0200
description:
Reset idle timeout also in APPEND/IDLE.

diffstat:

2 files changed, 2 insertions(+)
src/imap/cmd-append.c |    1 +
src/imap/cmd-idle.c   |    1 +

diffs (22 lines):

diff -r 7ee2bee70d6a -r 0861436bfe14 src/imap/cmd-append.c
--- a/src/imap/cmd-append.c	Sun Jan 06 06:09:34 2008 +0200
+++ b/src/imap/cmd-append.c	Sun Jan 06 07:09:33 2008 +0200
@@ -43,6 +43,7 @@ static void client_input_append(struct c
 	i_assert(!client->destroyed);
 
 	client->last_input = ioloop_time;
+	timeout_reset(client->to_idle);
 
 	switch (i_stream_read(client->input)) {
 	case -1:
diff -r 7ee2bee70d6a -r 0861436bfe14 src/imap/cmd-idle.c
--- a/src/imap/cmd-idle.c	Sun Jan 06 06:09:34 2008 +0200
+++ b/src/imap/cmd-idle.c	Sun Jan 06 07:09:33 2008 +0200
@@ -64,6 +64,7 @@ static void idle_client_input(struct cmd
 	char *line;
 
 	client->last_input = ioloop_time;
+	timeout_reset(client->to_idle);
 
 	switch (i_stream_read(client->input)) {
 	case -1:


More information about the dovecot-cvs mailing list