Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msg/async: support of non-block connect in async messenger #5848

Merged
merged 1 commit into from Nov 13, 2015

Conversation

zuiwanyuan
Copy link
Contributor

msg/async: support of non-block connect in async messenger

Fixes: #12802

Signed-off-by: Jianhui Yuan zuiwanyuan@gmail.com

if (r < 0) {
if (r == -EINPROGRESS || r == -EALREADY)
break;
goto fail;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz add level 1 error log above "goto"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@yuyuyu101
Copy link
Member

LGTM

@yuyuyu101
Copy link
Member

Tested in http://pulpito.ceph.com/haomai-2015-11-10_11:24:27-rados-wip-haomai-testing-distro-basic-multi/.

Failed jobs 1145091 and 1145178 his http://tracker.ceph.com/issues/13767
Failed job 1145207 hits fd limits

@yuyuyu101
Copy link
Member

ready to merge

@yuyuyu101
Copy link
Member

@liewegas give a look? It has passed tests.

* > 0 just break, and wait for event
* < 0 need to goto fail
*/
int NetHandler::reconnect(const entity_addr_t &addr, int sd)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doxygen comments are normally put into the header file. and should be started with /**, see src/mon/Monitor.h for more examples.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Fixes: ceph#12802

Signed-off-by: Jianhui Yuan <zuiwanyuan@gmail.com>
liewegas added a commit that referenced this pull request Nov 13, 2015
msg/async: support of non-block connect in async messenger

Reviewed-by: Haomai Wang <haomai@xsky.com>
@liewegas liewegas merged commit f622301 into ceph:master Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants