Bug 332799 fix for 100% cpu issue on session invalidation after a hot deploy

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2626 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jesse McConnell 2011-01-04 22:30:55 +00:00
parent 68323125b6
commit a3efe35e4a
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,7 @@
jetty-7.3.0-SNAPSHOT
+ 333247 fix api compat issue in ConstraintSecurityHandler
+ 332799 100% CPU on redeploy session invalidation
+ 332432 Scanner.java now always scanning the canonical form of File
+ 332179 Fixed formatting of negative dates
+ 332703 Cleanup context scope JNDI at stop

View File

@ -127,15 +127,18 @@ public class HashSessionIdManager extends AbstractSessionIdManager
*/
public void invalidateAll(String id)
{
// Do not use interators as this method tends to be called recursively
// Do not use iterators as this method tends to be called recursively
// by the invalidate calls.
while (_sessions.containsKey(id))
{
Session session=(Session)_sessions.getValue(id,0);
if (session.isValid())
{
session.invalidate();
else
_sessions.removeValue(id,session);
}
_sessions.removeValue(id,session);
}
}