Skip to content

Commit

Permalink
AsyncConnection: Close connection when unregistered connection met WAIT
Browse files Browse the repository at this point in the history
Fix ceph#12912
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
  • Loading branch information
yuyuyu101 committed Sep 2, 2015
1 parent b199c49 commit 9cc1055
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/msg/async/AsyncConnection.cc
Expand Up @@ -1506,6 +1506,10 @@ int AsyncConnection::handle_connect_reply(ceph_msg_connect &connect, ceph_msg_co
}
if (reply.tag == CEPH_MSGR_TAG_WAIT) {
ldout(async_msgr->cct, 3) << __func__ << " connect got WAIT (connection race)" << dendl;
if (!once_ready) {
ldout(async_msgr->cct, 1) << __func__ << " got WAIT while connection isn't registered, just closed." << dendl;
goto fail;
}
state = STATE_WAIT;
}

Expand Down

0 comments on commit 9cc1055

Please sign in to comment.