SSLEngine.beginHandshake() can throw a RuntimeException.

This commit is contained in:
Trustin Lee 2011-08-02 15:09:12 +09:00
parent 0b36aa6270
commit 5f19f4c0b6

View File

@ -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);
}
}