From ee66c9239381168b36eaa68cd1e962e4034a81f2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 18 May 2017 02:43:36 +1200 Subject: Add chunk aggregation to DMT HTTP --- src/org/traccar/protocol/DmtHttpProtocol.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/org') diff --git a/src/org/traccar/protocol/DmtHttpProtocol.java b/src/org/traccar/protocol/DmtHttpProtocol.java index da8f43bbd..c1b0f5601 100644 --- a/src/org/traccar/protocol/DmtHttpProtocol.java +++ b/src/org/traccar/protocol/DmtHttpProtocol.java @@ -17,6 +17,7 @@ package org.traccar.protocol; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; +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.traccar.BaseProtocol; @@ -37,6 +38,7 @@ public class DmtHttpProtocol extends BaseProtocol { protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("httpEncoder", new HttpResponseEncoder()); pipeline.addLast("httpDecoder", new HttpRequestDecoder()); + pipeline.addLast("httpAggregator", new HttpChunkAggregator(16384)); pipeline.addLast("objectDecoder", new DmtHttpProtocolDecoder(DmtHttpProtocol.this)); } }); -- cgit v1.2.3