diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-07-02 11:31:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-07-02 11:31:14 -0700 |
commit | 86ac75eb6e10d9161a9d29dab47f3da8356549d0 (patch) | |
tree | 26886153e151f23db4c970b6a623ec22e0099cfc /src/org | |
parent | ef3bf24ff34fbeaf60f951663db502fcc1894b7d (diff) | |
download | traccar-server-86ac75eb6e10d9161a9d29dab47f3da8356549d0.tar.gz traccar-server-86ac75eb6e10d9161a9d29dab47f3da8356549d0.tar.bz2 traccar-server-86ac75eb6e10d9161a9d29dab47f3da8356549d0.zip |
Fix issue with TLV frame decoder
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/TlvProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } }); |