Skip to content
Snippets Groups Projects
Commit 13ac8262 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Limit the check to a 4 tries every timeout.

parent 2d720643
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment