ITS#5469 check earlier for write waiters

This commit is contained in:
Howard Chu 2008-04-15 22:17:50 +00:00
parent 66b581643f
commit cfb478679f

View File

@ -1621,6 +1621,9 @@ connection_resched( Connection *conn )
{ {
Operation *op; Operation *op;
if( conn->c_writewaiter )
return 0;
if( conn->c_conn_state == SLAP_C_CLOSING ) { if( conn->c_conn_state == SLAP_C_CLOSING ) {
Debug( LDAP_DEBUG_TRACE, "connection_resched: " Debug( LDAP_DEBUG_TRACE, "connection_resched: "
"attempting closing conn=%lu sd=%d\n", "attempting closing conn=%lu sd=%d\n",
@ -1629,7 +1632,7 @@ connection_resched( Connection *conn )
return 0; 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 */ /* other states need different handling */
return 0; return 0;
} }