From: Kurt Zeilenga Date: Sat, 19 Jun 1999 03:23:49 +0000 (+0000) Subject: Limit the check to a 4 tries every timeout. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~259 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13ac82621b8bc90648414957e2d420a04b0bbd55;p=openldap Limit the check to a 4 tries every timeout. --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index b80ec9c62b..3c8bfe4386 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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); }