Made sure the close futures which are hold by SslHandler are notified when the connection is closed.
This commit is contained in:
parent
5966c93cfe
commit
09b2a101bd
@ -358,6 +358,17 @@ public class SslHandler extends FrameDecoder {
|
||||
}
|
||||
}
|
||||
|
||||
// Notify all close futures which were not notifieid yet.
|
||||
synchronized (closeFutures) {
|
||||
for (;;) {
|
||||
ChannelFuture future = closeFutures.poll();
|
||||
if (future == null) {
|
||||
break;
|
||||
}
|
||||
future.setSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
super.channelDisconnected(ctx, e);
|
||||
} finally {
|
||||
|
Loading…
Reference in New Issue
Block a user