[jdk11u-dev] RFR: 8292044: HttpClient doesn't handle 102 or 103 properly

Matthias Baesken mbaesken at openjdk.org
Tue Aug 6 11:51:53 UTC 2024


On Tue, 6 Aug 2024 11:45:58 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Backport of 8292044 from 17

HttpClientImpl.java  exception block needs manual addition, diffs in the stride


@@ -582,6 +583,8 @@ final class HttpClientImpl extends HttpClient implements Trackable {
                 // any other SSLException is wrapped in a plain
                 // SSLException
                 throw new SSLException(msg, throwable);
+            } else if (throwable instanceof ProtocolException) {
+                throw new ProtocolException(msg);
             } else if (throwable instanceof IOException) {
                 throw new IOException(msg, throwable);
             } else {


Stream.java

checkRequestCancelled()  not in, avoid this change part

test Response1xxTest.java
has to be adjusted to build ; and testSecureHTTP2Unexpected101  gets an IOException not a ProtocolException (seems there are some diffs/other changes 11 compared to 17/21)

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2896#issuecomment-2271100689


More information about the jdk-updates-dev mailing list