From 1e8a2e69dbf852775a8ae679edee2d25d60bc392 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 8 Apr 2015 11:29:59 +0200 Subject: [PATCH] [#3592] Flush when writing HttpChunkedInput Motivation: We missed to flush the channel when using HttpChunkedInput (this is done when using SSL). This will result in a stale. Modifications: Replace ctx.write(...) with ctx.writeAndFlush(...) Result: Correctly working example. --- .../io/netty/example/http/file/HttpStaticFileServerHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java index 0ce49c544b..1ecbd15cb5 100644 --- a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java +++ b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java @@ -195,7 +195,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler