From 553f0f2ffd266a2c7c7865f5e4e945d96aa6bbc5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 21 Jul 2009 02:04:46 +0000 Subject: [PATCH] ITS#6220 don't check write timeouts when global_writetimeout isn't set --- servers/slapd/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 05e8122c62..897a50c3bc 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -249,7 +249,7 @@ int connections_timeout_idle(time_t now) i++; continue; } - if ( c->c_writewaiter ) { + if ( c->c_writewaiter && global_writetimeout ) { writers = 1; if( difftime( c->c_activitytime+global_writetimeout, now) < 0 ) { /* close it */ @@ -260,7 +260,7 @@ int connections_timeout_idle(time_t now) } } connection_done( c ); - if ( !writers ) + if ( old && !writers ) slapd_clr_writetime( old ); return i; -- 2.39.5