upstream = backend_select( op );
if ( !upstream ) {
Debug( LDAP_DEBUG_STATS, "client_bind: "
- "no available connection found\n" );
+ "connid=%lu, msgid=%d no available connection found\n",
+ op->o_client_connid, op->o_client_msgid );
operation_send_reject(
op, LDAP_UNAVAILABLE, "no connections available", 1 );
CONNECTION_LOCK_DECREF(client);
case LDAP_REQ_UNBIND:
/* There is never a response for this operation */
operation_destroy_from_client( op );
+ Debug( LDAP_DEBUG_STATS, "handle_one_request: "
+ "received unbind, closing client connid=%lu\n",
+ c->c_connid );
CLIENT_DESTROY(c);
return -1;
case LDAP_REQ_BIND:
enum sc_state state;
Debug( LDAP_DEBUG_CONNS, "client_destroy: "
- "destroying client %lu\n",
+ "destroying client connid=%lu\n",
c->c_connid );
assert( c->c_state != SLAP_C_INVALID );
}
Debug( LDAP_DEBUG_TRACE, "operation_init: "
- "set up a new operation, %s with msgid=%d for client %lu\n",
+ "set up a new operation, %s with msgid=%d for client connid=%lu\n",
slap_msgtype2str( op->o_tag ), op->o_client_msgid,
op->o_client_connid );
upstream = backend_select( op );
if ( !upstream ) {
Debug( LDAP_DEBUG_STATS, "request_process: "
- "no available connection found\n" );
+ "connid=%lu, msgid=%d no available connection found\n",
+ op->o_client_connid, op->o_client_msgid );
goto fail;
}
op->o_upstream = upstream;
}
if ( op ) {
Debug( LDAP_DEBUG_TRACE, "handle_one_response: "
- "upstream=%lu, processing response for client %lu, msgid=%d\n",
+ "upstream=%lu, processing response for client connid=%lu, "
+ "msgid=%d\n",
c->c_connid, op->o_client_connid, op->o_client_msgid );
} else {
tag = ber_peek_tag( ber, &len );