RFR: 8371887: HttpClient: SSLParameters with no protocols configured disable HTTP2+ support
Daniel Jeliński
djelinski at openjdk.org
Mon Nov 24 18:02:23 UTC 2025
When checking for supported TLS versions, use SSLContext default parameters if the provided SSLParameters have no protocols configured.
This fixes an issue where using SSLParameters with no protocols disabled the use of HTTP2 and HTTP3, even when these protocols were supported and enabled in the SSLContext.
Modified the existing tests to additionally cover the case of empty SSLParameters. All tests continue to pass.
-------------
Commit messages:
- Do not require protocols in SSLParameters
Changes: https://git.openjdk.org/jdk/pull/28480/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28480&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8371887
Stats: 122 lines in 7 files changed: 70 ins; 39 del; 13 mod
Patch: https://git.openjdk.org/jdk/pull/28480.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28480/head:pull/28480
PR: https://git.openjdk.org/jdk/pull/28480
More information about the net-dev
mailing list