]> git.sur5r.net Git - openldap/commitdiff
Don't timeout slow-running operations
authorHoward Chu <hyc@openldap.org>
Sat, 27 Sep 2003 05:36:20 +0000 (05:36 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 27 Sep 2003 05:36:20 +0000 (05:36 +0000)
servers/slapd/connection.c

index 61ab3bf5fbca06b25f98402cf15c611bae196725..731f46bc8cc764f31d55bcfe9a66cd740be0ae0d 100644 (file)
@@ -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 );