mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
More for #6220, don't timeout idle connections when writetimeout is
set and idletimeout is not.
This commit is contained in:
parent
31084affa6
commit
a975c61451
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user