aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-08-20 08:37:19 -0700
committerGitHub <noreply@github.com>2019-08-20 08:37:19 -0700
commiteb2e0fc938c19f4bde059bb7eb1cb5165c8e2862 (patch)
tree1a648280be2347f01a6cc94c2c57be54e1e8f5dd /src/main/java/org/traccar/BaseProtocolDecoder.java
parent44ff8dfdfe6342354077a21e22f2cf7444f84c1b (diff)
parent84d275c1bffadd06d2941b346bc4619b7654d652 (diff)
downloadtrackermap-server-eb2e0fc938c19f4bde059bb7eb1cb5165c8e2862.tar.gz
trackermap-server-eb2e0fc938c19f4bde059bb7eb1cb5165c8e2862.tar.bz2
trackermap-server-eb2e0fc938c19f4bde059bb7eb1cb5165c8e2862.zip
Merge pull request #4384 from edvalley/proposed
Make session cache per protocol configurable
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/BaseProtocolDecoder.java3
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..e6e02c2d6 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() + ".ignoreSessionCache")
+ || config.getBoolean("decoder.ignoreSessionCache")) {
long deviceId = findDeviceId(remoteAddress, uniqueIds);
if (deviceId != 0) {
if (connectionManager != null) {