Commit 9d359a8047daace17d037cd0af526771ae680bab

Authored by Volodymyr Babak
Committed by Andrew Shvayka
1 parent 75e5ccd4

Fixed inactivitiy timeout for gw sessions

... ... @@ -33,3 +33,5 @@ pom.xml.versionsBackup
33 33 **/.env
34 34 .instance_id
35 35 rebuild-docker.sh
  36 +.run/**
  37 +.run
\ No newline at end of file
... ...
... ... @@ -418,8 +418,8 @@ public class DefaultTransportService implements TransportService {
418 418 sessions.forEach((uuid, sessionMD) -> {
419 419 long lastActivityTime = sessionMD.getLastActivityTime();
420 420 TransportProtos.SessionInfoProto sessionInfo = sessionMD.getSessionInfo();
421   - if (sessionInfo.getGwSessionIdMSB() > 0 &&
422   - sessionInfo.getGwSessionIdLSB() > 0) {
  421 + if (sessionInfo.getGwSessionIdMSB() != 0 &&
  422 + sessionInfo.getGwSessionIdLSB() != 0) {
423 423 SessionMetaData gwMetaData = sessions.get(new UUID(sessionInfo.getGwSessionIdMSB(), sessionInfo.getGwSessionIdLSB()));
424 424 if (gwMetaData != null) {
425 425 lastActivityTime = Math.max(gwMetaData.getLastActivityTime(), lastActivityTime);
... ...
... ... @@ -725,6 +725,7 @@
725 725 <exclude>**/*.proto.js</exclude>
726 726 <exclude>docker/haproxy/**</exclude>
727 727 <exclude>docker/tb-node/**</exclude>
  728 + <exclude>.run/**</exclude>
728 729 </excludes>
729 730 <mapping>
730 731 <proto>JAVADOC_STYLE</proto>
... ...