Merge pull request #6021 from ehardy/notified-nodes-key-expiration

Making sure that redisson:tomcat_notified_nodes keys get an expiration on SessionDestroyedMessage.
pull/6030/head
Nikita Koksharov 7 months ago committed by GitHub
commit 75a4186f0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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