diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-07 10:55:35 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-07 10:55:35 +1200 |
commit | ff23b231b678536e2d395680c5f9fb0f73e2ddd8 (patch) | |
tree | 29088b73c04f70d9a12ce65e59528737cee1b518 /src/org/traccar/BasePipelineFactory.java | |
parent | 1f7e9473e1bc0faff0feab20c5b5f801df285ba3 (diff) | |
download | trackermap-server-ff23b231b678536e2d395680c5f9fb0f73e2ddd8.tar.gz trackermap-server-ff23b231b678536e2d395680c5f9fb0f73e2ddd8.tar.bz2 trackermap-server-ff23b231b678536e2d395680c5f9fb0f73e2ddd8.zip |
Do not use idle timeout for UDP
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index 41053cde2..6e350f61d 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -129,7 +129,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { @Override public ChannelPipeline getPipeline() { ChannelPipeline pipeline = Channels.pipeline(); - if (timeout != 0) { + if (timeout > 0 && !server.isConnectionless()) { pipeline.addLast("idleHandler", new IdleStateHandler(GlobalTimer.getTimer(), timeout, 0, 0)); } pipeline.addLast("openHandler", new OpenChannelHandler(server)); |