[11u] RFR: 8241372: Several test failures due to javax.net.ssl.SSLException: Connection reset

Doerr, Martin martin.doerr at sap.com
Wed Mar 17 14:02:29 UTC 2021


Hi,

JDK-8241372 is backported to 11.0.12-oracle. I'd like to backport it for parity.
It applies cleanly, but I had to remove the code which sets "serverAddress" which was introduced by https://bugs.openjdk.java.net/browse/JDK-8230435 and is not in 11u (see below).

Bug:
https://bugs.openjdk.java.net/browse/JDK-8241372

Original change:
https://git.openjdk.java.net/jdk/commit/0a50688d

11u backport:
http://cr.openjdk.java.net/~mdoerr/8241372_SSL_testfix_11u/webrev.00/

Please review.

Best regards,
Martin


diff -r fbb7b445880e test/jdk/javax/net/ssl/SSLSession/TestEnabledProtocols.java
--- a/test/jdk/javax/net/ssl/SSLSession/TestEnabledProtocols.java       Tue Feb 16 18:54:39 2021 +0000
+++ b/test/jdk/javax/net/ssl/SSLSession/TestEnabledProtocols.java       Wed Mar 17 14:37:24 2021 +0100
@@ -65,7 +65,6 @@
         this.clientProtocols = clientProtocols;
         this.exceptionExpected = exceptionExpected;
         this.selectedProtocol = selectedProtocol;
-        this.serverAddress = InetAddress.getLoopbackAddress();
     }

     @Override
diff -r fbb7b445880e test/jdk/sun/security/ssl/CipherSuite/SupportedGroups.java
--- a/test/jdk/sun/security/ssl/CipherSuite/SupportedGroups.java        Tue Feb 16 18:54:39 2021 +0000
+++ b/test/jdk/sun/security/ssl/CipherSuite/SupportedGroups.java        Wed Mar 17 14:37:24 2021 +0100
@@ -52,10 +52,6 @@
         {{"TLSv1.2"}, {"TLSv1.2"}}
     };

-    public SupportedGroups() {
-        this.serverAddress = InetAddress.getLoopbackAddress();
-    }
-
     // Servers are configured before clients, increment test case after.
     @Override
     protected void configureClientSocket(SSLSocket socket) {



More information about the jdk-updates-dev mailing list