Skip to content

Commit

Permalink
Merge pull request #10003 from dachary/wip-16380-jewel
Browse files Browse the repository at this point in the history
jewel: msg/async: connection race hang

Reviewed-by: Haomai Wang <haomai@xsky.com>
  • Loading branch information
Loic Dachary committed Aug 4, 2016
2 parents 648442b + 3dbb08a commit 093f30d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/msg/async/AsyncConnection.cc
Expand Up @@ -1076,9 +1076,12 @@ ssize_t AsyncConnection::_process_connection()
ldout(async_msgr->cct, 1) << __func__ << " reconnect failed " << dendl;
goto fail;
} else if (r > 0) {
ldout(async_msgr->cct, 10) << __func__ << " nonblock connect inprogress" << dendl;
center->create_file_event(sd, EVENT_WRITABLE, read_handler);
break;
}

center->delete_file_event(sd, EVENT_WRITABLE);
state = STATE_CONNECTING_WAIT_BANNER;
break;
}
Expand Down

0 comments on commit 093f30d

Please sign in to comment.