Commit b25c7477 authored by Howard Chu's avatar Howard Chu
Browse files

Let the idletimeout check kill hung writers

parent a7b4be5b
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment