Re: [ipv6] Regarding 8220673: Add test library support for determining platform IP support

2019-04-16 Thread Chris Hegarty
Arthur, > On 16 Apr 2019, at 00:37, Arthur Eubanks wrote: > > While looking through some of the tests, I noticed that there is > jdk.test.lib.NetworkConfiguration which has methods like "isIPv6Available". > It seems much more comprehensive than what is in the proposed IPSupport. > Although th

How to deal with multi-step WWW-Authenticate with the new HttpClient

2019-04-16 Thread Weijun Wang
Hi, All, I am trying the new HttpClient to deal with a multi-step Negotiate authentication with Windows IIS, and here is my code. HttpClient hc = HttpClient.newBuilder().build(); var req = HttpRequest.newBuilder().uri(new URI(args[0])); while (true) { var resp = hc.send(req.build(), HttpResp

Re: [RFR]: 8222562: IPv6 only systems fail on setsockopt(IPV6_V6ONLY, 0)

2019-04-16 Thread Alan Bateman
On 16/04/2019 22:34, Arthur Eubanks wrote: Hi, Copied from the bug https://bugs.openjdk.java.net/browse/JDK-8222562: Some of the networking code tries to support dual socket support. However, it doesn't work with IPv6 only systems. setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, 0) returns a failur