aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/H02Protocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-20 16:32:24 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-20 16:32:24 +1300
commitf64840b9e85d4869c92e9f20a2f5043522ad4008 (patch)
treef2cc0e4f7c893ebbc7313adaa3ea656b1c0ea7c8 /src/org/traccar/protocol/H02Protocol.java
parent23e11715cc6f5e94002123293a1108a48044316e (diff)
downloadtrackermap-server-f64840b9e85d4869c92e9f20a2f5043522ad4008.tar.gz
trackermap-server-f64840b9e85d4869c92e9f20a2f5043522ad4008.tar.bz2
trackermap-server-f64840b9e85d4869c92e9f20a2f5043522ad4008.zip
Use heuristics for H02 message length
Diffstat (limited to 'src/org/traccar/protocol/H02Protocol.java')
-rw-r--r--src/org/traccar/protocol/H02Protocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02Protocol.java b/src/org/traccar/protocol/H02Protocol.java
index 06ac2a6fa..089721aed 100644
--- a/src/org/traccar/protocol/H02Protocol.java
+++ b/src/org/traccar/protocol/H02Protocol.java
@@ -43,7 +43,7 @@ public class H02Protocol extends BaseProtocol {
serverList.add(new TrackerServer(new ServerBootstrap(), getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- int messageLength = Context.getConfig().getInteger(getName() + ".messageLength", 32);
+ int messageLength = Context.getConfig().getInteger(getName() + ".messageLength");
pipeline.addLast("frameDecoder", new H02FrameDecoder(messageLength));
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectEncoder", new H02ProtocolEncoder());