From dd82343819305503e6c34bce815147021e5d8918 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 14 Feb 2025 13:43:46 +0200 Subject: [PATCH] auth: Avoid auth failure delays entirely with auth_failure_delay=0 --- src/auth/auth-request-handler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/auth/auth-request-handler.c b/src/auth/auth-request-handler.c index 424295cc84..bfa7a73aac 100644 --- a/src/auth/auth-request-handler.c +++ b/src/auth/auth-request-handler.c @@ -222,6 +222,11 @@ static bool auth_request_want_failure_delay(struct auth_request *request) /* internal failures have their own delay */ return FALSE; } + if (request->set->failure_delay == 0) { + /* Auth failure delays are disabled entirely. This is mainly + intended for making tests faster. */ + return FALSE; + } if (shutting_down) { /* process is shutting down - finish failures immediately. */ return FALSE; -- 2.47.3