An experimental workaround for infinite blocking SSLEngine
This commit is contained in:
parent
ce30409da8
commit
763d0cf809
@ -650,6 +650,15 @@ public class SslHandler extends FrameDecoder {
|
|||||||
handshake(channel);
|
handshake(channel);
|
||||||
initialHandshake = false;
|
initialHandshake = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (channel.getCloseFuture().isDone()) {
|
||||||
|
ChannelFuture handshakeFuture = this.handshakeFuture;
|
||||||
|
if (handshakeFuture != null &&
|
||||||
|
handshakeFuture.getCause() != null) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
result = engine.unwrap(inNetBuf, outAppBuf);
|
result = engine.unwrap(inNetBuf, outAppBuf);
|
||||||
} catch (SSLException e) {
|
} catch (SSLException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user