Commit 5f809c45 authored by Howard Chu's avatar Howard Chu
Browse files

check mutex in connection_write()

parent 4572e7d7
...@@ -1859,7 +1859,9 @@ int connection_write(ber_socket_t s) ...@@ -1859,7 +1859,9 @@ int connection_write(ber_socket_t s)
Debug( LDAP_DEBUG_TRACE, Debug( LDAP_DEBUG_TRACE,
"connection_write(%d): waking output for id=%lu\n", "connection_write(%d): waking output for id=%lu\n",
s, c->c_connid, 0 ); s, c->c_connid, 0 );
ldap_pvt_thread_mutex_lock( &c->c_write2_mutex );
ldap_pvt_thread_cond_signal( &c->c_write2_cv ); ldap_pvt_thread_cond_signal( &c->c_write2_cv );
ldap_pvt_thread_mutex_unlock( &c->c_write2_mutex );
if ( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_NEEDS_READ, NULL ) ) { if ( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_NEEDS_READ, NULL ) ) {
slapd_set_read( s, 1 ); slapd_set_read( s, 1 );
......
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