]> git.sur5r.net Git - openldap/commitdiff
More for #6220, don't timeout idle connections when writetimeout is
authorHoward Chu <hyc@openldap.org>
Mon, 17 Aug 2009 11:28:25 +0000 (11:28 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 17 Aug 2009 11:28:25 +0000 (11:28 +0000)
set and idletimeout is not.

servers/slapd/connection.c

index 897a50c3bc8a1138d12e9f8024b92854f5c0b5e0..b8c7cf05d7fb68ee1f05d83ab83dc6b5072a7387 100644 (file)
@@ -242,7 +242,8 @@ int connections_timeout_idle(time_t now)
                        continue;
                }
 
-               if( difftime( c->c_activitytime+global_idletimeout, now) < 0 ) {
+               if( global_idletimeout && 
+                       difftime( c->c_activitytime+global_idletimeout, now) < 0 ) {
                        /* close it */
                        connection_closing( c, "idletimeout" );
                        connection_close( c );