// note last received message.
in_seq.set(message->get_seq());
- ldout(async_msgr->cct, 10) << __func__ << " got message " << message->get_seq()
- << " " << message << " " << *message << dendl;
- ldout(async_msgr->cct, 1) << " == rx == " << message->get_source() << " " << message << " " << *message
- << dendl;
+ ldout(async_msgr->cct, 1) << " == rx == " << message->get_source() << " seq "
+ << message->get_seq() << " " << message << " " << *message << dendl;
// if send_message always successfully send, it may have no
// opportunity to send seq ack. 10 is a experience value.
if (existing->policy.lossy) {
// disconnect from the Connection
existing->center->dispatch_event_external(existing->reset_handler);
+ ldout(async_msgr->cct, 1) << __func__ << " replacing on lossy channel, failing existing" << dendl;
existing->_stop();
} else {
assert(can_write == NOWRITE);
existing->write_lock.Unlock();
if (existing->_reply_accept(CEPH_MSGR_TAG_RETRY_GLOBAL, connect, reply, authorizer_reply) < 0) {
// handle error
+ ldout(async_msgr->cct, 0) << __func__ << " reply fault for existing connection." << dendl;
existing->fault();
}
+ ldout(async_msgr->cct, 1) << __func__ << " stop myself to swap existing" << dendl;
_stop();
existing->lock.Unlock();
return 0;
int AsyncConnection::send_message(Message *m)
{
- ldout(async_msgr->cct, 10) << __func__ << " m=" << m << dendl;
- ldout(async_msgr->cct, 1) << " == tx == " << m << " " << *m
- << dendl;
+ ldout(async_msgr->cct, 1) << " == tx == " << m << " " << *m << dendl;
// optimistic think it's ok to encode(actually may broken now)
if (!m->get_priority())
}
if (policy.lossy && !(state >= STATE_CONNECTING && state < STATE_CONNECTING_READY)) {
- ldout(async_msgr->cct, 10) << __func__ << " on lossy channel, failing" << dendl;
+ ldout(async_msgr->cct, 1) << __func__ << " on lossy channel, failing" << dendl;
center->dispatch_event_external(reset_handler);
_stop();
return ;
if (state == STATE_CLOSED)
return ;
- ldout(async_msgr->cct, 10) << __func__ << dendl;
+ ldout(async_msgr->cct, 1) << __func__ << dendl;
Mutex::Locker l(write_lock);
if (sd >= 0)
center->delete_file_event(sd, EVENT_READABLE|EVENT_WRITABLE);
void AsyncConnection::mark_down()
{
- ldout(async_msgr->cct, 10) << __func__ << " started." << dendl;
+ ldout(async_msgr->cct, 1) << __func__ << " started." << dendl;
Mutex::Locker l(lock);
_stop();
}