diff --git a/VERSION.txt b/VERSION.txt index 4a9bc3213a6..74ab3ed9452 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -9,6 +9,8 @@ jetty-7.2-SNAPSHOT + 320264 Removed duplicate mime.property entries + 320457 Added rfc2045 support to B64Code + 321232 BasicAuthenticator ignores bad Authorization header. + + 321307 HashSessionManager calls passivation listeners. + + JETTY-912 added per exchange timeout api + JETTY-1245 Do not use direct buffers with NIO SSL + JETTY-1249 Apply max idle time to all connectors diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/AbstractSessionManager.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/AbstractSessionManager.java index 20bfb28d8c9..e25dd0f1cd6 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/session/AbstractSessionManager.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/AbstractSessionManager.java @@ -607,10 +607,6 @@ public abstract class AbstractSessionManager extends AbstractLifeCycle implement ((HttpSessionListener)LazyList.get(_sessionListeners,i)).sessionCreated(event); } } - else - { - session.didActivate(); - } } /* ------------------------------------------------------------ */ @@ -701,11 +697,6 @@ public abstract class AbstractSessionManager extends AbstractLifeCycle implement for (int i=LazyList.size(_sessionListeners); i-->0;) ((HttpSessionListener)LazyList.get(_sessionListeners,i)).sessionDestroyed(event); } - - if (!invalidate) - { - session.willPassivate(); - } } } diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java index f646c7f24f6..c3e269a146c 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java @@ -94,8 +94,7 @@ public class HashSessionManager extends AbstractSessionManager */ @Override public void doStop() throws Exception - { - + { if (_storeDir != null) saveSessions(); @@ -397,11 +396,13 @@ public class HashSessionManager extends AbstractSessionManager _lazyLoad = lazyLoad; } + /* ------------------------------------------------------------ */ public boolean isLazyLoad() { return _lazyLoad; } - + + /* ------------------------------------------------------------ */ public void restoreSessions () throws Exception { if (_storeDir==null || !_storeDir.exists()) @@ -424,6 +425,7 @@ public class HashSessionManager extends AbstractSessionManager Session session = restoreSession(in); in.close(); addSession(session, false); + session.didActivate(); files[i].delete(); } catch (Exception e) @@ -464,7 +466,9 @@ public class HashSessionManager extends AbstractSessionManager file.delete(); file.createNewFile(); FileOutputStream fos = new FileOutputStream (file); + session.willPassivate(); session.save(fos); + session.didActivate(); fos.close(); } catch (Exception e)