ITS#6220 don't check write timeouts when global_writetimeout isn't set

This commit is contained in:
Howard Chu 2009-07-21 02:04:46 +00:00
parent 3ebee592e0
commit 553f0f2ffd

View File

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