From 21269fa073a0587a75de83c0705985f98dac6128 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 2 Aug 2011 15:09:12 +0900 Subject: [PATCH] SSLEngine.beginHandshake() can throw a RuntimeException. --- src/main/java/org/jboss/netty/handler/ssl/SslHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java b/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java index 666cb7122f..edd2b52545 100644 --- a/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java +++ b/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java @@ -338,7 +338,7 @@ public class SslHandler extends FrameDecoder engine.beginHandshake(); runDelegatedTasks(); handshakeFuture = this.handshakeFuture = future(channel); - } catch (SSLException e) { + } catch (Exception e) { handshakeFuture = this.handshakeFuture = failedFuture(channel, e); } }