Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/23213
Change subject: [net] use AF_INET hint for GetFQDN() ...................................................................... [net] use AF_INET hint for GetFQDN() I noticed that on nodes with not properly configured IPv6 DNS resolver (e.g., my laptop) GetFQDN() would take quite a long time (~5 seconds) even if it eventually returns the name. This patch addresses the issue, adding the AF_INET hint for 'ai_family' when invoking getaddrinfo(). Doing so is in sync with the set of hints provided for getaddrinfo() invocation in the context of HostPort::ResolveAddresses(). Change-Id: Ibca0a3c1f7ad03a6f847057c38c00b42275dec8b --- M src/kudu/util/net/net_util.cc 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/13/23213/1 -- To view, visit http://gerrit.cloudera.org:8080/23213 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ibca0a3c1f7ad03a6f847057c38c00b42275dec8b Gerrit-Change-Number: 23213 Gerrit-PatchSet: 1 Gerrit-Owner: Alexey Serbin <[email protected]>
