RFR: 8266900: java/net/httpclient/ShortResponseBody.java fails on windows with java.io.IOException: Unable to establish loopback connection [v2]
Daniel Jeliński
djelinski at openjdk.org
Thu Oct 20 16:04:08 UTC 2022
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/10794/files
- new: https://git.openjdk.org/jdk/pull/10794/files/efdb905c..2d424962
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=10794&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=10794&range=00-01
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/10794.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10794/head:pull/10794
PR: https://git.openjdk.org/jdk/pull/10794
More information about the net-dev
mailing list