From cfb478679f55530409c71cdd176ef76e136ad483 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 15 Apr 2008 22:17:50 +0000 Subject: [PATCH] ITS#5469 check earlier for write waiters --- servers/slapd/connection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index a42e7ace3f..c4b858dc3b 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1621,6 +1621,9 @@ connection_resched( Connection *conn ) { Operation *op; + if( conn->c_writewaiter ) + return 0; + if( conn->c_conn_state == SLAP_C_CLOSING ) { Debug( LDAP_DEBUG_TRACE, "connection_resched: " "attempting closing conn=%lu sd=%d\n", @@ -1629,7 +1632,7 @@ connection_resched( Connection *conn ) return 0; } - if( conn->c_conn_state != SLAP_C_ACTIVE || conn->c_writewaiter ) { + if( conn->c_conn_state != SLAP_C_ACTIVE ) { /* other states need different handling */ return 0; } -- 2.39.5