mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5469 check earlier for write waiters
This commit is contained in:
parent
66b581643f
commit
cfb478679f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user