RFR: 8301169: java/net/httpclient/ThrowingSubscribersAsInputStream.java, ThrowingSubscribersAsInputStreamAsync.java, and other httpclient tests failing on windows: Unable to establish loopback connection
Aleksei Efimov
aefimov at openjdk.org
Tue Apr 25 15:07:08 UTC 2023
On Tue, 25 Apr 2023 14:02:48 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> The HttpClient Throwing* tests are creating a lot of HttpClient instances and have been observed failing on Windows from time to time with the error: Unable to establish loopback connection.
>
> To try and mitigate the issue here is a change that will wait for the previous client to be GC'ed before creating the new one. Hopefully that should reduce the cases where these tests fail due to resource exhaustion.
LGTM
-------------
Marked as reviewed by aefimov (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/13644#pullrequestreview-1400137282
More information about the net-dev
mailing list