Fixed a bug where the future associated with the close request is not notified when the channel was closed already when SslHandler attempts to send a closure_notify.
This shouldn't be a problem to most applications because they usually do not specify their own future object for the close request.
This commit is contained in:
parent
46c9a5f094
commit
e85996ea46
@ -1072,6 +1072,8 @@ public class SslHandler extends FrameDecoder
|
||||
public void operationComplete(ChannelFuture closeNotifyFuture) throws Exception {
|
||||
if (!(closeNotifyFuture.getCause() instanceof ClosedChannelException)) {
|
||||
Channels.close(context, e.getFuture());
|
||||
} else {
|
||||
e.getFuture().setSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user