LDAP_REQ_BIND, &op->o_request,
LDAP_TAG_CONTROLS, BER_BV_OPTIONAL( &op->o_ctrls ) );
+ Debug( LDAP_DEBUG_TRACE, "request_bind: "
+ "added bind from client connid=%lu to upstream connid=%lu as "
+ "msgid=%d\n",
+ op->o_client_connid, op->o_upstream_connid, op->o_upstream_msgid );
if ( tavl_insert( &upstream->c_ops, op, operation_upstream_cmp,
avl_dup_error ) ) {
assert(0);
}
ldap_pvt_thread_mutex_lock( &upstream->c_mutex );
+ Debug( LDAP_DEBUG_TRACE, "request_bind_as_vc: "
+ "added bind from client connid=%lu to upstream connid=%lu as VC "
+ "exop msgid=%d\n",
+ op->o_client_connid, op->o_upstream_connid, op->o_upstream_msgid );
if ( tavl_insert( &upstream->c_ops, op, operation_upstream_cmp,
avl_dup_error ) ) {
assert(0);
}
op->o_upstream = upstream;
+ op->o_upstream_connid = upstream->c_connid;
if ( lload_features & LLOAD_FEATURE_VC ) {
rc = request_bind_as_vc( op );
} else {
op = ch_calloc( 1, sizeof(Operation) );
op->o_client = c;
+ op->o_client_connid = c->c_connid;
op->o_ber = ber;
tag = ber_get_int( ber, &op->o_client_msgid );
rc = tavl_insert( &c->c_ops, op, operation_client_cmp, avl_dup_error );
if ( rc ) {
Debug( LDAP_DEBUG_PACKETS, "operation_init: "
- "several operations with same msgid=%d in-flight "
- "from the client\n",
- op->o_client_msgid );
+ "several operations with same msgid=%d in-flight from client "
+ "%lu\n",
+ op->o_client_msgid, op->o_client_connid );
goto fail;
}
Debug( LDAP_DEBUG_TRACE, "operation_init: "
"set up a new operation, %s with msgid=%d for client %lu\n",
- slap_msgtype2str( op->o_tag ), op->o_client_msgid, c->c_connid );
+ slap_msgtype2str( op->o_tag ), op->o_client_msgid,
+ op->o_client_connid );
return op;
Debug( LDAP_DEBUG_TRACE, "operation_send_reject: "
"rejecting %s from client %lu with message: \"%s\"\n",
- slap_msgtype2str( op->o_tag ), c->c_connid, msg );
+ slap_msgtype2str( op->o_tag ), op->o_client_connid, msg );
ldap_pvt_thread_mutex_lock( &c->c_mutex );
found = ( tavl_delete( &c->c_ops, op, operation_client_cmp ) == op );
goto fail;
}
op->o_upstream = upstream;
+ op->o_upstream_connid = upstream->c_connid;
output = upstream->c_pendingber;
if ( output == NULL && (output = ber_alloc()) == NULL ) {
struct Operation {
Connection *o_client, *o_upstream;
+ unsigned long o_client_connid, o_upstream_connid;
ber_int_t o_client_msgid, o_upstream_msgid;
ber_tag_t o_tag;
Debug( LDAP_DEBUG_CONNS, "forward_response: "
"%s to client %lu request #%d\n",
- slap_msgtype2str( response_tag ), c->c_connid, op->o_client_msgid );
+ slap_msgtype2str( response_tag ), op->o_client_connid,
+ op->o_client_msgid );
ldap_pvt_thread_mutex_lock( &c->c_io_mutex );
output = c->c_pendingber;
Debug( LDAP_DEBUG_CONNS, "forward_final_response: "
"finishing up with request #%d for client %lu\n",
- op->o_client_msgid, op->o_client->c_connid );
+ op->o_client_msgid, op->o_client_connid );
rc = forward_response( op, ber );
operation_destroy( op );
Debug( LDAP_DEBUG_CONNS, "handle_bind_response: "
"received response for bind request by client %lu, result=%d\n",
- c->c_connid, result );
+ op->o_client_connid, result );
switch ( result ) {
case LDAP_SASL_BIND_IN_PROGRESS:
if ( op ) {
Debug( LDAP_DEBUG_TRACE, "handle_one_response: "
"upstream=%lu, processing response for client %lu, msgid=%d\n",
- c->c_connid, op->o_client->c_connid, op->o_client_msgid );
+ c->c_connid, op->o_client_connid, op->o_client_msgid );
} else {
tag = ber_peek_tag( ber, &len );
Debug( LDAP_DEBUG_TRACE, "handle_one_response: "