Class FlushOnReadHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- software.amazon.awssdk.http.nio.netty.internal.http2.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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlushOnReadHandler
getInstance()
void
read(io.netty.channel.ChannelHandlerContext ctx)
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, write
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
read
public void read(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
read
in interfaceio.netty.channel.ChannelOutboundHandler
- Overrides:
read
in classio.netty.channel.ChannelOutboundHandlerAdapter
-
getInstance
public static FlushOnReadHandler getInstance()
-
-