diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-07 11:28:37 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-07 11:28:37 +1200 |
commit | 1680d3d0234d9d1e2152e644882a9c1fb39a8a47 (patch) | |
tree | f86818ef84575744f98e27b470a0225150abde2c /src/org/traccar/ServerManager.java | |
parent | eaa0044002aeaff0b5df11f8463a068a6ff2284d (diff) | |
download | trackermap-server-1680d3d0234d9d1e2152e644882a9c1fb39a8a47.tar.gz trackermap-server-1680d3d0234d9d1e2152e644882a9c1fb39a8a47.tar.bz2 trackermap-server-1680d3d0234d9d1e2152e644882a9c1fb39a8a47.zip |
Fix Castel frame decoder
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index ae0f4a57e..44adfadbc 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -1435,7 +1435,7 @@ public class ServerManager { TrackerServer server = new TrackerServer(new ServerBootstrap(), protocol) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 2, 2, -2, 0)); + pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 2, 2, -4, 0)); pipeline.addLast("objectDecoder", new CastelProtocolDecoder(protocol)); } }; |