This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 5bb8b27fcd SocketException been observed as well as 
SSLHandshakeException
5bb8b27fcd is described below

commit 5bb8b27fcd29d4368facd73b120b121ffba49c63
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jun 18 08:49:21 2026 +0100

    SocketException been observed as well as SSLHandshakeException
---
 test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java 
b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
index 2e9f7ae9e3..3093fa4378 100644
--- a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
+++ b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
@@ -17,6 +17,7 @@
 
 package org.apache.tomcat.util.net;
 
+import java.net.SocketException;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
@@ -83,11 +84,13 @@ public class TestSslHandshakeFailure extends TomcatBaseTest 
{
             getUrl("https://localhost:"; + getPort() + "/");
             Assert.fail("SSLHandshakeException expected, but handshake did not 
fail");
         } catch (SSLHandshakeException e) {
-        // Java 8 might throw SSLException instead of SSLHandshakeException
+            // Java 8 might throw SSLException instead of SSLHandshakeException
         } catch (SSLException e) {
             if (JreCompat.isJre9Available()) {
                 throw(e);
             }
+        } catch (SocketException e) {
+            // SocketException has also been observed
         }
 
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to