RFR: 8266900: java/net/httpclient/ShortResponseBody.java fails on windows with java.io.IOException: Unable to establish loopback connection [v2]

Daniel Fuchs dfuchs at openjdk.org
Thu Oct 20 17:22:53 UTC 2022


On Thu, 20 Oct 2022 16:04:08 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> This PR reduces the number of requests performed by ShortResponseBody* tests from 570 to 100. It also reduces the number of httpclients created from one per request/URL to one per 10 requests. This in turn will translate to reduced frequency of failures caused by all ephemeral ports being in use.
>> 
>> Before this patch each test URL was repeated 12 times: 3 times with a dedicated client, then 3 more times with a client shared across all requests, repeated for sync and async.
>> After this patch each test URL is checked only 2 times, once with sync and once with async call.
>> 
>> The tests continue to pass.
>
> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Really change client every 10 requests

Marked as reviewed by dfuchs (Reviewer).

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

PR: https://git.openjdk.org/jdk/pull/10794


More information about the net-dev mailing list