JDK-8170910: Avoid 5 second localhost lookup behavior on OSX

2019-04-03 Thread Nora Howard
I'd initially sent this to jdk-dev, but I was asked to move it to net-dev. On OSX 10.12 or later, when no mDNS services are registered, getaddrinfo fails on looking up localhost addresses[1]. The jdk’s current implementation falls back to getifaddrs after getaddrinfo fails[2]. When getaddrinfo fai

Re: JDK-8170910: Avoid 5 second localhost lookup behavior on OSX

2019-04-04 Thread Nora Howard
to see the > patch > and also do you have detailed instructions on how to reproduce the issue > (the 5 second delay)? > > Thanks, > Michael. > > On 03/04/2019, 17:46, Nora Howard wrote: > > I'd initially sent this to jdk-dev, but I was asked to move it to net-dev. &g

Re: JDK-8170910: Avoid 5 second localhost lookup behavior on OSX

2019-04-05 Thread Nora Howard
this problem > as I don't see any delay or external MDNS lookups happening. > . > Could you send me the output of "scutil --dns" of your laptop? > At the same time, I will ask some colleagues here who might be running > 10.12 > to try it out. > > Thanks, > Michael

Re: AW: JDK-8170910: Avoid 5 second localhost lookup behavior on OSX

2019-04-11 Thread Nora Howard
d the cname record is returned in > the same response from the local DNS server. > > You're probably thinking of the InetAddress.getCanonicalHostName() method > which does do a reverse lookup > (via getnameinfo()) > > Michael > > > > > *Von: *Michael McMah