From 86ac75eb6e10d9161a9d29dab47f3da8356549d0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 Jul 2018 11:31:14 -0700 Subject: Fix issue with TLV frame decoder --- src/org/traccar/protocol/TlvProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/traccar/protocol/TlvProtocol.java b/src/org/traccar/protocol/TlvProtocol.java index ddc8d2a6e..bfe597e76 100644 --- a/src/org/traccar/protocol/TlvProtocol.java +++ b/src/org/traccar/protocol/TlvProtocol.java @@ -33,7 +33,7 @@ public class TlvProtocol extends BaseProtocol { serverList.add(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder('\0')); + pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, '\0')); pipeline.addLast("objectDecoder", new TlvProtocolDecoder(TlvProtocol.this)); } }); -- cgit v1.2.3