From b089b69bb231382c470a71bcf1179fd4786ba431 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 21 Jan 2014 19:20:37 +1300 Subject: Add piligrim http aggregator --- src/org/traccar/ServerManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 341e32c3d..052a79eab 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -30,6 +30,7 @@ import org.jboss.netty.handler.codec.frame.DelimiterBasedFrameDecoder; import org.jboss.netty.handler.codec.frame.FixedLengthFrameDecoder; import org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder; import org.jboss.netty.handler.codec.frame.LineBasedFrameDecoder; +import org.jboss.netty.handler.codec.http.HttpChunkAggregator; import org.jboss.netty.handler.codec.http.HttpRequestDecoder; import org.jboss.netty.handler.codec.http.HttpResponseEncoder; import org.jboss.netty.handler.codec.string.StringDecoder; @@ -1051,6 +1052,7 @@ public class ServerManager { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("httpDecoder", new HttpRequestDecoder()); + pipeline.addLast("httpAggregator", new HttpChunkAggregator(16384)); pipeline.addLast("httpEncoder", new HttpResponseEncoder()); pipeline.addLast("objectDecoder", new PiligrimProtocolDecoder(ServerManager.this)); } -- cgit v1.2.3