Propagate channelWritabilityChanged() through the pipeline after flushing. Related to [#1861]
This commit is contained in:
parent
f35ba4f80f
commit
52660dfcfa
@ -129,11 +129,6 @@ public class ChunkedWriteHandler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void read(ChannelHandlerContext ctx) {
|
|
||||||
ctx.read();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
|
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
|
||||||
queue.add(new PendingWrite(msg, promise));
|
queue.add(new PendingWrite(msg, promise));
|
||||||
@ -159,6 +154,7 @@ public class ChunkedWriteHandler
|
|||||||
// channel is writable again try to continue flushing
|
// channel is writable again try to continue flushing
|
||||||
doFlush(ctx);
|
doFlush(ctx);
|
||||||
}
|
}
|
||||||
|
ctx.fireChannelWritabilityChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void discard(Throwable cause) {
|
private void discard(Throwable cause) {
|
||||||
|
Loading…
Reference in New Issue
Block a user