parent
c4f372b111
commit
e15ca4947e
@ -1414,7 +1414,7 @@ public class SslHandler extends FrameDecoder
|
||||
return;
|
||||
}
|
||||
|
||||
boolean success = false;
|
||||
boolean passthrough = true;
|
||||
try {
|
||||
try {
|
||||
unwrap(context, e.getChannel(), ChannelBuffers.EMPTY_BUFFER, 0, 0);
|
||||
@ -1431,18 +1431,16 @@ public class SslHandler extends FrameDecoder
|
||||
ChannelFuture closeNotifyFuture = wrapNonAppData(context, e.getChannel());
|
||||
closeNotifyFuture.addListener(
|
||||
new ClosingChannelFutureListener(context, e));
|
||||
success = true;
|
||||
passthrough = false;
|
||||
} catch (SSLException ex) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Failed to encode a close_notify message", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
success = true;
|
||||
}
|
||||
} finally {
|
||||
if (!success) {
|
||||
if (passthrough) {
|
||||
context.sendDownstream(e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user