Just managed to successfully reproduce a j.l.AssertionError in ResponseSubscribers.HttpResponseInputStream.read(), which happens with Java 11, but not with 17 or newer.
A reproducer is in this public repo on GitHub:
https://github.com/snazy/http-client-tcp-reset-repro.git
The command `./gradlew test` using Java 11 can be used to reproduce the AE.
{code}
java.lang.AssertionError
1707
at java.net.http/jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream.read(ResponseSubscribers.java:408)
1708
at java.base/java.io.InputStream.readNBytes(InputStream.java:396)
1709
at java.base/java.io.InputStream.readAllBytes(InputStream.java:333)
1710
at org.openjdk.httpclientresetrepro.fixture.BaseTest.withNewJavaHttpClient(BaseTest.java:218)
1711
{code}
A reproducer is in this public repo on GitHub:
https://github.com/snazy/http-client-tcp-reset-repro.git
The command `./gradlew test` using Java 11 can be used to reproduce the AE.
{code}
java.lang.AssertionError
1707
at java.net.http/jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream.read(ResponseSubscribers.java:408)
1708
at java.base/java.io.InputStream.readNBytes(InputStream.java:396)
1709
at java.base/java.io.InputStream.readAllBytes(InputStream.java:333)
1710
at org.openjdk.httpclientresetrepro.fixture.BaseTest.withNewJavaHttpClient(BaseTest.java:218)
1711
{code}
- duplicates
-
JDK-8228970 AssertionError in ResponseSubscribers$HttpResponseInputStream
-
- Resolved
-