From: Howard Chu Date: Sat, 27 Sep 2003 05:36:20 +0000 (+0000) Subject: Don't timeout slow-running operations X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~639 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c9ef0da66bfc94f09de05481fee49a595a854693;p=openldap Don't timeout slow-running operations --- 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 );