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 );