RFR: 8371887: HttpClient: SSLParameters with no protocols configured disable HTTP2+ support

Volkan Yazici vyazici at openjdk.org
Tue Nov 25 08:26:36 UTC 2025


On Mon, 24 Nov 2025 17:52:54 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> 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.

test/jdk/java/net/httpclient/http3/H3UnsupportedSSLParametersTest.java line 85:

> 83:      */
> 84:     @Test
> 85:     public void testDefault() throws Exception {

This test passes even without your changes. Is this expected?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28480#discussion_r2558964307


More information about the net-dev mailing list