mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Limit the check to a 4 tries every timeout.
This commit is contained in:
parent
2d720643be
commit
13ac82621b
@ -351,8 +351,9 @@ slapd_daemon_task(
|
||||
char *client_name;
|
||||
char *client_addr;
|
||||
|
||||
if( global_idletimeout > 0 &&
|
||||
difftime( last_idle_check+global_idletimeout, now ) < 0 )
|
||||
if( global_idletimeout > 0 && difftime(
|
||||
last_idle_check+global_idletimeout/SLAPD_IDLE_CHECK_LIMIT,
|
||||
now ) < 0 )
|
||||
{
|
||||
connections_timeout_idle(now);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user