From: Timo Sirainen Date: Tue, 20 Jul 2010 14:22:02 +0000 (+0100) Subject: lib-auth: Don't abort userdb iteration if it takes longer than 1 minute. X-Git-Tag: 2.0.rc3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36bf6cd88b1c71055ef12b07253f5223d981e43d;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: Don't abort userdb iteration if it takes longer than 1 minute. --- diff --git a/src/lib-auth/auth-master.c b/src/lib-auth/auth-master.c index 871abce89d..2f54551890 100644 --- a/src/lib-auth/auth-master.c +++ b/src/lib-auth/auth-master.c @@ -526,6 +526,8 @@ auth_user_list_reply_callback(const char *cmd, const char *const *args, 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) {