Otherwise if message in queue, we will continue to reconnect right now,
it won't meet our expectation that we want our connect request delay
Signed-off-by: Haomai Wang <haomai@xsky.com>
return ;
}
reset_recv_state();
- if (policy.standby && !is_queued()) {
+ if (policy.standby && !is_queued() && state != STATE_WAIT) {
ldout(async_msgr->cct,0) << __func__ << " with nothing to send, going to standby" << dendl;
state = STATE_STANDBY;
write_lock.Unlock();