Integrated: 8301169: java/net/httpclient/ThrowingSubscribersAsInputStream.java, ThrowingSubscribersAsInputStreamAsync.java, and other httpclient tests failing on windows: Unable to establish loopback connection

Daniel Fuchs dfuchs at openjdk.org
Tue Apr 25 15:51:40 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.

This pull request has now been integrated.

Changeset: 98e8616a
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/98e8616a0c27ac73caf8f91cc83adc88b3490dcb
Stats:     108 lines in 3 files changed: 108 ins; 0 del; 0 mod

8301169: java/net/httpclient/ThrowingSubscribersAsInputStream.java,ThrowingSubscribersAsInputStreamAsync.java, and other httpclient tests failing on windows: Unable to establish loopback connection

Reviewed-by: aefimov, djelinski

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

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


More information about the net-dev mailing list