mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
ITS#9820 fix writewait/idletimeout interaction
Since 88d22a1ca3 the writewait check
was moved out of connections_timeout_idle() but the connection loop
was still testing the writewait flag. That test is no longer relevant.
This commit is contained in:
parent
7419950aa3
commit
6657caaad8
1 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,7 @@ int connections_timeout_idle(time_t now)
|
|||
/* Don't timeout a slow-running request or a persistent
|
||||
* outbound connection.
|
||||
*/
|
||||
if((( c->c_n_ops_executing || c->c_n_ops_async ) && !c->c_writewaiter)
|
||||
if( c->c_n_ops_executing || c->c_n_ops_async
|
||||
|| c->c_conn_state == SLAP_C_CLIENT ) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -244,7 +244,7 @@ void connections_drop()
|
|||
/* Don't close a slow-running request or a persistent
|
||||
* outbound connection.
|
||||
*/
|
||||
if((( c->c_n_ops_executing || c->c_n_ops_async ) && !c->c_writewaiter)
|
||||
if( c->c_n_ops_executing || c->c_n_ops_async
|
||||
|| c->c_conn_state == SLAP_C_CLIENT ) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue