@Ignore("not supported anymore atm") @Test public void cancellingWritesBeforeFlush() { LastInboundHandler inboundHandler = streamActiveAndWriteHeaders(inboundStream); Channel childChannel = inboundHandler.channel(); Http2HeadersFrame headers1 = new DefaultHttp2HeadersFrame(new DefaultHttp2Headers()); Http2HeadersFrame headers2 = new DefaultHttp2HeadersFrame(new DefaultHttp2Headers()); ChannelPromise writePromise = childChannel.newPromise(); childChannel.write(headers1, writePromise); childChannel.write(headers2); assertTrue(writePromise.cancel(false)); childChannel.flush(); Http2HeadersFrame headers = parentChannel.readOutbound(); assertSame(headers, headers2); }
@Override public final void flush(ChannelHandlerContext ctx) { flushNeeded = false; super.flush(ctx); }
Http2MultiplexCodec extends Http2FrameCodec { @Override public final void flush(ChannelHandlerContext ctx) { flushNeeded = false; super.flush(ctx); } }
Http2MultiplexCodec extends Http2FrameCodec { @Override public final void flush(ChannelHandlerContext ctx) { flushNeeded = false; super.flush(ctx); } Http2MultiplexCodec(Http2ConnectionEncoder encoder, Http2ConnectionDecoder decoder, Http2Settings initialSettings,
                    ChannelHandler inboundStreamHandler); }
Http2MultiplexCodec extends Http2FrameCodec { @Override public final void flush(ChannelHandlerContext ctx) { flushNeeded = false; super.flush(ctx); } Http2MultiplexCodec(Http2ConnectionEncoder encoder, Http2ConnectionDecoder decoder, Http2Settings initialSettings,
                    ChannelHandler inboundStreamHandler); @Override final void handlerAdded0(ChannelHandlerContext ctx); @Override final void handlerRemoved0(ChannelHandlerContext ctx); @Override final void channelReadComplete(ChannelHandlerContext ctx); @Override final void channelRead(ChannelHandlerContext ctx, Object msg); @Override final void flush(ChannelHandlerContext ctx); }
Http2MultiplexCodec extends Http2FrameCodec { @Override public final void flush(ChannelHandlerContext ctx) { flushNeeded = false; super.flush(ctx); } Http2MultiplexCodec(Http2ConnectionEncoder encoder, Http2ConnectionDecoder decoder, Http2Settings initialSettings,
                    ChannelHandler inboundStreamHandler); @Override final void handlerAdded0(ChannelHandlerContext ctx); @Override final void handlerRemoved0(ChannelHandlerContext ctx); @Override final void channelReadComplete(ChannelHandlerContext ctx); @Override final void channelRead(ChannelHandlerContext ctx, Object msg); @Override final void flush(ChannelHandlerContext ctx);  }