test/jdk/com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java
branchJDK-8145252-TLS13-branch
changeset 56800 85305a50b1b4
parent 56588 a725ee6ccaea
equal deleted inserted replaced
56799:c274589ad63b 56800:85305a50b1b4
    65     }
    65     }
    66 
    66 
    67     public void performOp(InitialContext ctx) throws NamingException {}
    67     public void performOp(InitialContext ctx) throws NamingException {}
    68 
    68 
    69     public void handleNamingException(NamingException e, long start, long end) {
    69     public void handleNamingException(NamingException e, long start, long end) {
    70         if (e.getCause().getCause() instanceof SocketTimeoutException) {
    70         if (e.getCause() instanceof SocketTimeoutException
       
    71                 || e.getCause().getCause() instanceof SocketTimeoutException) {
    71             // SSL connect will timeout via readReply using
    72             // SSL connect will timeout via readReply using
    72             // SocketTimeoutException
    73             // SocketTimeoutException
    73             e.printStackTrace();
    74             e.printStackTrace();
    74             pass();
    75             pass();
    75         } else if (e.getCause() instanceof SSLHandshakeException
    76         } else if (e.getCause() instanceof SSLHandshakeException