Just fail all futures that are left to not cause out-of-order writes
This commit is contained in:
parent
ca5554dfe7
commit
1cdb9e0b48
@ -351,9 +351,7 @@ public class ChunkedWriteHandler
|
|||||||
// This method should not need any synchronization as the ChunkedWriteHandler will not receive any new events
|
// This method should not need any synchronization as the ChunkedWriteHandler will not receive any new events
|
||||||
@Override
|
@Override
|
||||||
public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
|
public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
|
||||||
doFlush(ctx);
|
// Fail all promised that are queued. This is needed because otherwise we would never notify the
|
||||||
|
|
||||||
// Fail all MessageEvent's that are left. This is needed because otherwise we would never notify the
|
|
||||||
// ChannelFuture and the registered FutureListener. See #304
|
// ChannelFuture and the registered FutureListener. See #304
|
||||||
discard(ctx, new ChannelException(ChunkedWriteHandler.class.getSimpleName() + " removed from pipeline."));
|
discard(ctx, new ChannelException(ChunkedWriteHandler.class.getSimpleName() + " removed from pipeline."));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user