mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#6220 don't check write timeouts when global_writetimeout isn't set
This commit is contained in:
parent
3ebee592e0
commit
553f0f2ffd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user