mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Limit the check to a 4 tries every timeout.
This commit is contained in:
parent
2d720643be
commit
13ac82621b
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue