Skip to content

Commit a0e2f8b

Browse files
committed
netty: add FlushConsolidationHandler
1 parent f947ff7 commit a0e2f8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/jooby-netty/src/main/java/io/jooby/internal/netty/NettyPipeline.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import io.netty.handler.codec.http.HttpServerCodec;
2121
import io.netty.handler.codec.http.HttpServerExpectContinueHandler;
2222
import io.netty.handler.codec.http.HttpServerUpgradeHandler;
23+
import io.netty.handler.flush.FlushConsolidationHandler;
2324
import io.netty.handler.ssl.SslContext;
2425

2526
public class NettyPipeline extends ChannelInitializer<SocketChannel> {
@@ -52,6 +53,7 @@ public NettyPipeline(
5253
@Override
5354
public void initChannel(SocketChannel ch) {
5455
ChannelPipeline p = ch.pipeline();
56+
p.addLast(new FlushConsolidationHandler());
5557
if (sslContext != null) {
5658
p.addLast("ssl", sslContext.newHandler(ch.alloc()));
5759
}

0 commit comments

Comments
 (0)