mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
More for prev commit
This commit is contained in:
parent
b8db865c0a
commit
ef846c9105
1 changed files with 9 additions and 1 deletions
|
|
@ -171,7 +171,15 @@ static long send_ldap_ber(
|
|||
int err;
|
||||
|
||||
/* lock the connection */
|
||||
ldap_pvt_thread_mutex_lock( &conn->c_mutex );
|
||||
if ( ldap_pvt_thread_mutex_trylock( &conn->c_mutex )) {
|
||||
ldap_pvt_thread_mutex_unlock( &conn->c_write1_mutex );
|
||||
ldap_pvt_thread_mutex_lock( &conn->c_write1_mutex );
|
||||
if ( conn->c_writers < 0 ) {
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( ber_flush2( conn->c_sb, ber, LBER_FLUSH_FREE_NEVER ) == 0 ) {
|
||||
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue