aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-05-18 02:43:36 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-05-18 02:43:36 +1200
commitee66c9239381168b36eaa68cd1e962e4034a81f2 (patch)
tree188a053a83fd26490a9c70f4cc77500773b13ccb /src
parent51542a55b769cb82cdc04ad7119632b9561478f3 (diff)
downloadtrackermap-server-ee66c9239381168b36eaa68cd1e962e4034a81f2.tar.gz
trackermap-server-ee66c9239381168b36eaa68cd1e962e4034a81f2.tar.bz2
trackermap-server-ee66c9239381168b36eaa68cd1e962e4034a81f2.zip
Add chunk aggregation to DMT HTTP
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/DmtHttpProtocol.java2
1 files changed, 2 insertions, 0 deletions
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));
}
});