diff options
author | Edward Valley <ed.valley@yandex.com> | 2019-08-18 15:09:00 -0400 |
---|---|---|
committer | Edward Valley <ed.valley@yandex.com> | 2019-08-18 15:09:00 -0400 |
commit | c64ad4872256ed947ce0bfcbdb797dbd919378ee (patch) | |
tree | 6e9c391f482226fca328e73e1cb8929595acd4ca /src/main/java | |
parent | dd848b71892c7f5f2554cf793dc123f8f456ddb5 (diff) | |
download | trackermap-server-c64ad4872256ed947ce0bfcbdb797dbd919378ee.tar.gz trackermap-server-c64ad4872256ed947ce0bfcbdb797dbd919378ee.tar.bz2 trackermap-server-c64ad4872256ed947ce0bfcbdb797dbd919378ee.zip |
Make session cache per protocol configurable
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/BaseProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolDecoder.java b/src/main/java/org/traccar/BaseProtocolDecoder.java index c78c220aa..54a5038b6 100644 --- a/src/main/java/org/traccar/BaseProtocolDecoder.java +++ b/src/main/java/org/traccar/BaseProtocolDecoder.java @@ -149,7 +149,8 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { public DeviceSession getDeviceSession( Channel channel, SocketAddress remoteAddress, boolean ignoreCache, String... uniqueIds) { if (channel != null && BasePipelineFactory.getHandler(channel.pipeline(), HttpRequestDecoder.class) != null - || ignoreCache || config.getBoolean("decoder.ignoreSessionCache")) { + || ignoreCache || config.getBoolean(getProtocolName() + ".decoder.ignoreSessionCache") + || config.getBoolean("decoder.ignoreSessionCache")) { long deviceId = findDeviceId(remoteAddress, uniqueIds); if (deviceId != 0) { if (connectionManager != null) { |