aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-01-21 19:20:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-01-21 19:20:37 +1300
commitb089b69bb231382c470a71bcf1179fd4786ba431 (patch)
tree53ecb0b130c33e0bdf6aaf6e85ae147baeffabf5 /src/org/traccar
parent590e30751c9e16470bdf1e90e26437c7a9bd20ee (diff)
downloadtraccar-server-b089b69bb231382c470a71bcf1179fd4786ba431.tar.gz
traccar-server-b089b69bb231382c470a71bcf1179fd4786ba431.tar.bz2
traccar-server-b089b69bb231382c470a71bcf1179fd4786ba431.zip
Add piligrim http aggregator
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/ServerManager.java2
1 files changed, 2 insertions, 0 deletions
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));
}