dovecot-2.0: lib-auth: Don't abort userdb iteration if it takes ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 20 17:22:06 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/fd4cf27c179b
changeset: 11869:fd4cf27c179b
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 20 15:22:02 2010 +0100
description:
lib-auth: Don't abort userdb iteration if it takes longer than 1 minute.

diffstat:

 src/lib-auth/auth-master.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r d8af22b91beb -r fd4cf27c179b src/lib-auth/auth-master.c
--- a/src/lib-auth/auth-master.c	Tue Jul 20 15:19:04 2010 +0100
+++ b/src/lib-auth/auth-master.c	Tue Jul 20 15:22:02 2010 +0100
@@ -526,6 +526,8 @@
 	struct auth_master_user_list_ctx *ctx = context;
 	const char *user;
 
+	timeout_reset(ctx->conn->to);
+
 	if (strcmp(cmd, "DONE") == 0) {
 		io_loop_stop(ctx->conn->ioloop);
 		if (args[0] != NULL && strcmp(args[0], "fail") == 0) {


More information about the dovecot-cvs mailing list