From b2e06954361ec33532ae23ed3918860df49a86de Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Wed, 3 Jan 2024 13:47:21 +0000 Subject: [PATCH] NIO2 triggers an even more generic exception --- test/org/apache/tomcat/util/net/TestSsl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/org/apache/tomcat/util/net/TestSsl.java b/test/org/apache/tomcat/util/net/TestSsl.java index 48902c128a8b..99a51d3e686f 100644 --- a/test/org/apache/tomcat/util/net/TestSsl.java +++ b/test/org/apache/tomcat/util/net/TestSsl.java @@ -34,7 +34,6 @@ import javax.net.ssl.HandshakeCompletedEvent; import javax.net.ssl.HandshakeCompletedListener; import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLException; import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocketFactory; @@ -285,7 +284,7 @@ public void testClientInitiatedRenegotiation() throws Exception { if (!renegotiationSupported) { Assert.fail("Renegotiation started when it should have failed"); } - } catch (SSLException e) { + } catch (IOException e) { if (renegotiationSupported) { Assert.fail("Renegotiation failed when it should be supported"); }