]> git.sur5r.net Git - openldap/commitdiff
Limit the check to a 4 tries every timeout.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 19 Jun 1999 03:23:49 +0000 (03:23 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 19 Jun 1999 03:23:49 +0000 (03:23 +0000)
servers/slapd/daemon.c

index b80ec9c62b9d50970f7ec2d034f375c700c34417..3c8bfe43864f6f36bc5febb1560bd13a52a7fc76 100644 (file)
@@ -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);
                }