aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-09-06 21:30:32 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-09-06 21:30:32 +1200
commit36b23f0fe4ec1334102fa5d0a21d3692e9ce6da9 (patch)
tree62a6ab54697fef290633914440699cd3fa63062c /src/org/traccar/ServerManager.java
parent702acdd21ff7da9f583422f63ca67740fd06f439 (diff)
downloadtrackermap-server-36b23f0fe4ec1334102fa5d0a21d3692e9ce6da9.tar.gz
trackermap-server-36b23f0fe4ec1334102fa5d0a21d3692e9ce6da9.tar.bz2
trackermap-server-36b23f0fe4ec1334102fa5d0a21d3692e9ce6da9.zip
Support Wondex keep alive (fix #380)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index ab81caafd..a997cb06f 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -674,11 +674,8 @@ public class ServerManager {
serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- byte delimiter[] = { (byte) '\r', (byte) '\n' };
- pipeline.addLast("frameDecoder",
- new DelimiterBasedFrameDecoder(1024, ChannelBuffers.wrappedBuffer(delimiter)));
+ pipeline.addLast("frameDecoder", new WondexFrameDecoder());
pipeline.addLast("stringDecoder", new StringDecoder());
- pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new WondexProtocolDecoder(ServerManager.this));
}
});