mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue