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

2019-04-09 Thread Michael McMahon
Hi, So, I reproduced the issue, albeit with one configuration change that I'm not sure whether is common or not. Basically, I could see that lookups to any host with a ".local" suffix would use MDNS and if the local services are not active, then I see the packets being sent on the wire, no r

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

2019-04-05 Thread Nora Howard
Oh, another element is that to see the behavior, your local hostname has to not have an entry in /etc/hosts. Adding it is one of the workarounds. My /etc/hosts has a localhost entry that does not include the name my machine ends up with after boot. I'm also on 10.13, so I don't think that's the is

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

2019-04-05 Thread Michael McMahon
I've spent some time trying to reproduce this on 10.13 but have not been able. I have disabled all the services as suggested (including some additional) such that the dns-sd command produces no output "records" and also by disabling unicast DNS access. I wonder if there has been a change in 10.1

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

2019-04-04 Thread Nora Howard
Here's the diff http://cr.openjdk.java.net/~tonyp/8170910/webrev.0/ To setup an env to reproduce the issue, on a OSX machine with >= 10.12, turn off services that register with mDNS. For my laptop, I had to turn off iTunes and General System Preferences, disable "Allow Handoff between this Mac and

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

2019-04-04 Thread Michael McMahon
Hi Nora, At first sight, the approach sounds reasonable to me. I'd like 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 ask