sources/ldap: fix 100% cpu usage when LDAP Server is unavailable (#6094)
This commit is contained in:
parent
6d036876db
commit
35e2b648ba
|
@ -151,7 +151,7 @@ class LDAPSource(Source):
|
|||
servers.append(Server(server, **server_kwargs))
|
||||
else:
|
||||
servers = [Server(self.server_uri, **server_kwargs)]
|
||||
return ServerPool(servers, RANDOM, active=True, exhaust=True)
|
||||
return ServerPool(servers, RANDOM, active=5, exhaust=True)
|
||||
|
||||
def connection(
|
||||
self, server_kwargs: Optional[dict] = None, connection_kwargs: Optional[dict] = None
|
||||
|
|
Reference in New Issue