This repository has been archived by the owner on Nov 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
RedisSessions are not removed from memory due to incompatible type comparison #7
Comments
trasa
added a commit
to trasa/jetty-session-redis
that referenced
this issue
Jan 14, 2016
This class calls jedis.exists() to determine if a session key has expired or not - but was comparing the return value vs. 0L instead of vs. a boolean false, so RedisSessions would never be scavenged, leaking resources. See: ovea-deprecated#7
trasa
added a commit
to trasa/jetty-session-redis
that referenced
this issue
Jan 14, 2016
This class calls jedis.exists() to determine if a session key has expired or not - but was comparing the return value vs. 0L instead of vs. a boolean false, so RedisSessions would never be scavenged, leaking resources. See: ovea-deprecated#7
trasa
added a commit
to trasa/jetty-session-redis
that referenced
this issue
Jan 14, 2016
This class calls jedis.exists() to determine if a session key has expired or not - but was comparing the return value vs. 0L instead of vs. a boolean false, so RedisSessions would never be scavenged, leaking resources. See: ovea-deprecated#7
trasa
added a commit
to trasa/jetty-session-redis
that referenced
this issue
Jan 14, 2016
This class calls jedis.exists() to determine if a session key has expired or not - but was comparing the return value vs. 0L instead of vs. a boolean false, so RedisSessions would never be scavenged, leaking resources. See: ovea-deprecated#7
trasa
added a commit
to trasa/jetty-session-redis
that referenced
this issue
Jan 14, 2016
This class calls jedis.exists() to determine if a session key has expired or not - but was comparing the return value vs. 0L instead of vs. a boolean false, so RedisSessions would never be scavenged, leaking resources. See: ovea-deprecated#7
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RedisSessionIdManager.scavenge(...) uses a Long value (0L) to compare with a Boolean returned by Jedis.exists(key) and therefore the sessions are not able to be removed from SessionIdManagerSkeleton.sessions
The text was updated successfully, but these errors were encountered: