diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java index 76a606b247..844cef3c5b 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java @@ -172,7 +172,7 @@ public class Http2ConnectionHandler extends ByteToMessageDecoder implements Http // Trigger pending writes in the remote flow controller. connection().remote().flowController().writePendingBytes(); try { - super.flush(ctx); + ctx.flush(); } catch (Throwable t) { throw new Http2Exception(INTERNAL_ERROR, "Error flushing" , t); } @@ -451,11 +451,6 @@ public class Http2ConnectionHandler extends ByteToMessageDecoder implements Http ctx.write(msg, promise); } - @Override - public void flush(ChannelHandlerContext ctx) throws Exception { - ctx.flush(); - } - @Override public void channelReadComplete(ChannelHandlerContext ctx) throws Exception { // Trigger flush after read on the assumption that flush is cheap if there is nothing to write and that