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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlushOnReadHandler
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
exceptionCaught, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Method Details
-
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
-