diff --git a/src/main/java/org/logstash/tcp/InputLoop.java b/src/main/java/org/logstash/tcp/InputLoop.java index 8229517..1731da3 100644 --- a/src/main/java/org/logstash/tcp/InputLoop.java +++ b/src/main/java/org/logstash/tcp/InputLoop.java @@ -132,12 +132,17 @@ private static final class InputHandler extends ChannelInitializerIt requires the channel to be configured without {@code AUTO_READ}

+ */ + private static final class ThrottleReleaseHandler extends ChannelInboundHandlerAdapter { + @Override + public void channelActive(final ChannelHandlerContext ctx) throws Exception { + super.channelActive(ctx); + ctx.channel().read(); + } + + @Override + public void channelReadComplete(final ChannelHandlerContext ctx) throws Exception { + super.channelReadComplete(ctx); + ctx.channel().read(); + } + } + /** * Listeners that flushes the the JRuby supplied {@link Decoder} when the socket is closed. */