mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 08:06:55 +00:00
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:
parent
363b462c54
commit
21bf229731
1 changed files with 2 additions and 2 deletions
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue