Commit 16010e5e authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Ondřej Kuzník
Browse files

More logging improvements

parent 7b7f9724
......@@ -118,6 +118,9 @@ fail:
ber_free( copy, 0 );
}
ldap_pvt_thread_mutex_unlock( &upstream->c_io_mutex );
Debug( LDAP_DEBUG_STATS, "request_bind: "
"connid=%lu bind request processing failed, closing\n",
client->c_connid );
return 1;
}
......@@ -248,6 +251,9 @@ fail:
ber_free( copy, 0 );
}
ldap_pvt_thread_mutex_unlock( &upstream->c_io_mutex );
Debug( LDAP_DEBUG_STATS, "request_bind_as_vc: "
"connid=%lu bind request processing failed, closing\n",
client->c_connid );
operation_send_reject( op, result, msg, 1 );
return 1;
}
......
......@@ -55,7 +55,8 @@ client_read_cb( evutil_socket_t s, short what, void *arg )
ber = c->c_currentber;
if ( ber == NULL && (ber = ber_alloc()) == NULL ) {
Debug( LDAP_DEBUG_ANY, "client_read_cb: "
"ber_alloc failed\n" );
"connid=%lu, ber_alloc failed\n",
c->c_connid );
CLIENT_DESTROY(c);
return;
}
......@@ -151,7 +152,8 @@ handle_requests( void *ctx, void *arg )
if ( (ber = ber_alloc()) == NULL ) {
Debug( LDAP_DEBUG_ANY, "client_read_cb: "
"ber_alloc failed\n" );
"connid=%lu, ber_alloc failed\n",
c->c_connid );
CLIENT_DESTROY(c);
return NULL;
}
......@@ -205,7 +207,8 @@ handle_one_request( Connection *c )
op = operation_init( c, ber );
if ( !op ) {
Debug( LDAP_DEBUG_ANY, "handle_one_request: "
"operation_init failed\n" );
"connid=%lu, operation_init failed\n",
c->c_connid );
CLIENT_DESTROY(c);
ber_free( ber, 1 );
return -1;
......
......@@ -628,6 +628,9 @@ operation_send_reject(
ber = c->c_pendingber;
if ( ber == NULL && (ber = ber_alloc()) == NULL ) {
ldap_pvt_thread_mutex_unlock( &c->c_io_mutex );
Debug( LDAP_DEBUG_ANY, "operation_send_reject: "
"ber_alloc failed, closing connid=%lu\n",
c->c_connid );
CONNECTION_LOCK_DECREF(c);
operation_destroy_from_client( op );
CLIENT_DESTROY(c);
......
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