An experimental workaround for infinite blocking SSLEngine

This commit is contained in:
Trustin Lee 2009-04-08 22:09:13 +00:00
parent ce30409da8
commit 763d0cf809

View File

@ -650,6 +650,15 @@ public class SslHandler extends FrameDecoder {
handshake(channel);
initialHandshake = false;
}
if (channel.getCloseFuture().isDone()) {
ChannelFuture handshakeFuture = this.handshakeFuture;
if (handshakeFuture != null &&
handshakeFuture.getCause() != null) {
break;
}
}
try {
result = engine.unwrap(inNetBuf, outAppBuf);
} catch (SSLException e) {