Making sure that redisson:tomcat_notified_nodes keys get an expiration on SessionDestroyedMessage.

Replicating the expiration set RedissonSession.delete().

Signed-off-by: Etienne Hardy <etienne.hardy@appdirect.com>
pull/6021/head
Etienne Hardy 7 months ago
parent 9b9cf48b95
commit 9fbad3b6f5

@ -34,6 +34,7 @@ import org.redisson.pubsub.PublishSubscribeService;
import java.io.File;
import java.io.IOException;
import java.time.Duration;
import java.util.*;
/**
@ -335,6 +336,7 @@ public class RedissonSessionManager extends ManagerBase {
}
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
set.expire(Duration.ofSeconds(60));
}
}

@ -34,6 +34,7 @@ import org.redisson.pubsub.PublishSubscribeService;
import javax.servlet.http.HttpSession;
import java.io.File;
import java.io.IOException;
import java.time.Duration;
import java.util.*;
/**
@ -335,6 +336,7 @@ public class RedissonSessionManager extends ManagerBase {
}
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
set.expire(Duration.ofSeconds(60));
}
}

@ -34,6 +34,7 @@ import org.redisson.pubsub.PublishSubscribeService;
import javax.servlet.http.HttpSession;
import java.io.File;
import java.io.IOException;
import java.time.Duration;
import java.util.*;
/**
@ -335,6 +336,7 @@ public class RedissonSessionManager extends ManagerBase {
}
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
set.expire(Duration.ofSeconds(60));
}
}

@ -34,6 +34,7 @@ import org.redisson.pubsub.PublishSubscribeService;
import javax.servlet.http.HttpSession;
import java.io.File;
import java.io.IOException;
import java.time.Duration;
import java.util.*;
/**
@ -335,6 +336,7 @@ public class RedissonSessionManager extends ManagerBase {
}
RSet<String> set = getNotifiedNodes(msg.getSessionId());
set.add(nodeId);
set.expire(Duration.ofSeconds(60));
}
}

Loading…
Cancel
Save