From 13ac82621b8bc90648414957e2d420a04b0bbd55 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 19 Jun 1999 03:23:49 +0000 Subject: [PATCH] Limit the check to a 4 tries every timeout. --- servers/slapd/daemon.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.5