Made sure the close futures which are hold by SslHandler are notified when the connection is closed.

This commit is contained in:
Trustin Lee 2009-04-15 12:33:39 +00:00
parent 5966c93cfe
commit 09b2a101bd

View File

@ -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 {