Class FlushOnReadHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelOutboundHandler

    @Sharable
    public final class FlushOnReadHandler
    extends io.netty.channel.ChannelOutboundHandlerAdapter
    This is an HTTP/2 related workaround for an issue where a WINDOW_UPDATE is queued but not written to the socket, causing a read() on the channel to hang if the remote endpoint thinks our inbound window is 0.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Method Detail

      • read

        public void read​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        read in interface io.netty.channel.ChannelOutboundHandler
        Overrides:
        read in class io.netty.channel.ChannelOutboundHandlerAdapter