RFR [9] 8085785: sun/net/www/protocol/http/ZoneId.java timeout intermittently

Mark Sheppard mark.sheppard at oracle.com
Mon May 30 21:52:19 UTC 2016


Hi Chris,
    this looks good  ... so the server now listens on wildcard and the 
client uses IPv6 loopback as the destination address.
The use of NO_PROXY, is good. I wouldn't have thought of that, and in 
the past, Tests have experienced firewall issues on
linux and macos perviously without this setting.

regards
Mark

On 26/05/2016 14:33, Chris Hegarty wrote:
> ZoneId is attempting to verify the 'Host' header set by the HttpURLConnection implementation
> when given an IPv6 literal containing a scope id. It does so by iterating the network interfaces
> on the machine attempting to find one that is suitable to use as the listening interface for a
> temporary test HTTP sever. Then it connects to it, and verifies the value of the 'Host' header.
>
> This is problematic as some interfaces like teredo on Windows, or awdl on Mac, are not
> suitable. Rather than all this, the test can use the IPv6 loopback address, which can contain
> a scope id, if retrieved from the NetworkInterface API.
>
> http://cr.openjdk.java.net/~chegar/8085785/
> https://bugs.openjdk.java.net/browse/JDK-8085785
>
> -Chris.



More information about the net-dev mailing list