diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-03-06 19:17:40 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-03-06 19:17:40 +1300 |
commit | 2cb5e686486cfdcec425d4a29e4818533bcf154a (patch) | |
tree | 15ea0adb86dc17d1078f2516502a04e0624d0aca /src/org/traccar | |
parent | 51ebdc5e806edbb5fe978e42a380edcf4ce6fffc (diff) | |
download | trackermap-server-2cb5e686486cfdcec425d4a29e4818533bcf154a.tar.gz trackermap-server-2cb5e686486cfdcec425d4a29e4818533bcf154a.tar.bz2 trackermap-server-2cb5e686486cfdcec425d4a29e4818533bcf154a.zip |
Increase TLT-2H frame limit (fix #159)
Diffstat (limited to 'src/org/traccar')
-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 0c7995313..a8f8a742f 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -675,7 +675,7 @@ public class ServerManager { protected void addSpecificHandlers(ChannelPipeline pipeline) { byte delimiter[] = { (byte) '#', (byte) '#' }; pipeline.addLast("frameDecoder", - new DelimiterBasedFrameDecoder(1024, ChannelBuffers.wrappedBuffer(delimiter))); + new DelimiterBasedFrameDecoder(32 * 1024, ChannelBuffers.wrappedBuffer(delimiter))); pipeline.addLast("stringDecoder", new StringDecoder()); pipeline.addLast("stringEncoder", new StringEncoder()); pipeline.addLast("objectDecoder", new Tlt2hProtocolDecoder(ServerManager.this)); |