sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 27992 - http://anonsvn.icesoft.org/repo / icefaces2 / branches / icefaces-2.0.x-maintenance / icefaces / core / src / main / java / org / icefaces / impl / application / WindowScopeManager.java
Unified Diff View - WindowScopeManager.java
/icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/application/WindowScopeManager.java @ revision 27991
/icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/application/WindowScopeManager.java @ revision 27992
@@ -447,14 +447,18 @@     }     private static class TimeBasedHeuristicWindowScopeSharing implements SharedMapLookupStrategy { -        private static final int SameWindowMaxDelay = 500; +        private long sameWindowMaxDelay = -1;         public ScopeMap lookup(FacesContext context) { +            if (sameWindowMaxDelay == -1) { +                sameWindowMaxDelay = EnvUtils.getWindowScopeExpiration(context); +            } +             State state = getState(context);             Iterator i = state.windowScopedMaps.values().iterator();             while (i.hasNext()) {                 ScopeMap sm = (ScopeMap) i.next(); -                if (sm.activateTimestamp + SameWindowMaxDelay > System.currentTimeMillis()) { +                if (sm.activateTimestamp + sameWindowMaxDelay > System.currentTimeMillis()) {                     return sm;                 }             }


feed icon

sventon 2.5.1