From c9ef0da66bfc94f09de05481fee49a595a854693 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 27 Sep 2003 05:36:20 +0000 Subject: [PATCH] Don't timeout slow-running operations --- servers/slapd/connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 61ab3bf5fb..731f46bc8c 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -193,6 +193,9 @@ int connections_timeout_idle(time_t now) c != NULL; c = connection_next( c, &connindex ) ) { + /* Don't timeout a slow-running request */ + if( c->c_n_ops_executing ) continue; + if( difftime( c->c_activitytime+global_idletimeout, now) < 0 ) { /* close it */ connection_closing( c ); -- 2.39.5