RFR: 8308336: Test java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java failed: java.net.BindException: Address already in use [v2]

Daniel Fuchs dfuchs at openjdk.org
Thu Jun 8 16:22:48 UTC 2023


On Thu, 8 Jun 2023 15:47:43 GMT, Darragh Clarke <duke at openjdk.org> wrote:

>> No that's precisely what we want to avoid. Because how "localhost" maps to an InetAddress depends on the machine configuration, which is a recipe for intermittent failures.
>> 
>> I'd suggest:
>> 
>>         URL url = URIBuilder.newBuilder()
>>                 .scheme("http")
>>                 .localhost()
>> 
>> (which is actually the same)
>
> At a glance there isn't a `.localhost()` only a `.loopback()` is that what you were referring to?

Yes! Sorry - my mistake.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14177#discussion_r1223282455


More information about the net-dev mailing list