Reduce LDAP timeouts

10 seconds is way too long for any login attempt or search result. LDAP should always be fast.
This commit is contained in:
Mark Felder 2024-09-17 13:43:21 -04:00
parent 363b462c54
commit 21bf229731

View file

@ -8,8 +8,8 @@ defmodule Pleroma.LDAP do
import Pleroma.Web.Auth.Helpers, only: [fetch_user: 1] import Pleroma.Web.Auth.Helpers, only: [fetch_user: 1]
@connection_timeout 10_000 @connection_timeout 2_000
@search_timeout 10_000 @search_timeout 2_000
def start_link(_) do def start_link(_) do
GenServer.start_link(__MODULE__, [], name: __MODULE__) GenServer.start_link(__MODULE__, [], name: __MODULE__)