mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 04:29:35 -05:00
Let the idletimeout check kill hung writers
This commit is contained in:
parent
a7b4be5b33
commit
b25c74777a
1 changed files with 5 additions and 2 deletions
|
|
@ -225,8 +225,11 @@ int connections_timeout_idle(time_t now)
|
|||
c = connection_next( c, &connindex ) )
|
||||
{
|
||||
/* Don't timeout a slow-running request or a persistent
|
||||
* outbound connection */
|
||||
if( c->c_n_ops_executing || c->c_conn_state == SLAP_C_CLIENT ) {
|
||||
* outbound connection. But if it has a writewaiter, see
|
||||
* if the waiter has been there too long.
|
||||
*/
|
||||
if(( c->c_n_ops_executing && !c->c_writewaiter)
|
||||
|| c->c_conn_state == SLAP_C_CLIENT ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue