mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
ITS#6220 don't check write timeouts when global_writetimeout isn't set
This commit is contained in:
parent
3ebee592e0
commit
553f0f2ffd
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue