< prev index next >
test/com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java
Print this page
rev 14431 : 8205014: com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java failed with "Read timed out"
Reviewed-by: sgehwolf
@@ -65,11 +65,12 @@
}
public void performOp(InitialContext ctx) throws NamingException {}
public void handleNamingException(NamingException e, long start, long end) {
- if (e.getCause() instanceof SocketTimeoutException) {
+ if (e.getCause() instanceof SocketTimeoutException
+ || e.getCause().getCause() instanceof SocketTimeoutException) {
// SSL connect will timeout via readReply using
// SocketTimeoutException
e.printStackTrace();
pass();
} else if (e.getCause() instanceof SSLHandshakeException
< prev index next >