commit: 21bf229731f27426564140650397e51ba4bb4b93
parent 363b462c54c454e847072869db09f8f4d5da4426
Author: Mark Felder <feld@feld.me>
Date: Tue, 17 Sep 2024 13:43:21 -0400
Reduce LDAP timeouts
10 seconds is way too long for any login attempt or search result. LDAP should always be fast.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pleroma/ldap.ex b/lib/pleroma/ldap.ex
@@ -8,8 +8,8 @@ defmodule Pleroma.LDAP do
import Pleroma.Web.Auth.Helpers, only: [fetch_user: 1]
- @connection_timeout 10_000
- @search_timeout 10_000
+ @connection_timeout 2_000
+ @search_timeout 2_000
def start_link(_) do
GenServer.start_link(__MODULE__, [], name: __MODULE__)