Fix a problem in SslHandler where it doesn't work with TLS False Start

.. as suggested by @justinsb
This commit is contained in:
Trustin Lee 2013-03-07 12:51:07 +09:00
parent 148abe52f9
commit 0f8fbac9f8

View File

@ -545,6 +545,11 @@ public class SslHandler
setHandshakeSuccess();
continue;
case NOT_HANDSHAKING:
// Workaround for TLS False Start problem reported at:
// https://github.com/netty/netty/issues/1108#issuecomment-14266970
if (ctx.inboundByteBuffer().isReadable()) {
unwrapLater = true;
}
break;
default:
throw new IllegalStateException("Unknown handshake status: " + result.getHandshakeStatus());