diff options
author | Abyss777 <abyss@fox5.ru> | 2016-07-06 14:54:24 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-07-06 14:54:24 +0500 |
commit | 49f00254695ae56aa03c0174f5aadfe1a0e4c836 (patch) | |
tree | c1074e438dcb8aed8c2c2f4d172cb88e75d1bc58 /src/org/traccar/protocol/GranitProtocol.java | |
parent | 387d798a8fc66ec6792851a199fc83c4636fc6d8 (diff) | |
download | trackermap-server-49f00254695ae56aa03c0174f5aadfe1a0e4c836.tar.gz trackermap-server-49f00254695ae56aa03c0174f5aadfe1a0e4c836.tar.bz2 trackermap-server-49f00254695ae56aa03c0174f5aadfe1a0e4c836.zip |
Style fixes and optimizations
Diffstat (limited to 'src/org/traccar/protocol/GranitProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/GranitProtocol.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GranitProtocol.java b/src/org/traccar/protocol/GranitProtocol.java index fb9d10809..07357b786 100644 --- a/src/org/traccar/protocol/GranitProtocol.java +++ b/src/org/traccar/protocol/GranitProtocol.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.frame.LineBasedFrameDecoder; import org.traccar.BaseProtocol; import org.traccar.TrackerServer; import org.traccar.model.Command; @@ -39,7 +40,7 @@ public class GranitProtocol extends BaseProtocol { TrackerServer server = new TrackerServer(new ServerBootstrap(), this.getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new GranitFrameDecoder()); + pipeline.addLast("frameDecoder", new LineBasedFrameDecoder(1024, true, false)); pipeline.addLast("objectEncoder", new GranitProtocolEncoder()); pipeline.addLast("objectDecoder", new GranitProtocolDecoder(GranitProtocol.this)); } |