-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Modify the toHostAddr interface to support host resolved (gethostbyname). #935
Modify the toHostAddr interface to support host resolved (gethostbyname). #935
Conversation
…port the host name. Modify the toHostAddr interface to support host resolved (gethostbyname).
Unit testing failed. |
Jenkins go! |
Unit testing passed. |
Unit testing passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though imperfect, but still a positive improvement.
Wait a minute. Maybe It would be better to change the name of the interface accordingly to indicates that this function returns multiple IP addresses. Agree? |
Maybe we can split "toHostAddr(folly::StringPiece ip, int32_t port)" to two functions, getHostByName and getHostByAddr, and then call them in "toHostAddr(folly::StringPiece ipPort)"? |
Unit testing passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…stname_issue931
Unit testing passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Unit testing passed. |
…me). (vesoft-inc#935) * Issue vesoft-inc#931 the "meta_server_addrs" in the configuration support the host name. Modify the toHostAddr interface to support host resolved (gethostbyname). * replace the gethostbyname with getaddrinfo. * Refactoring part of the code.
close #931