You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/12/17 22:56:35 UTC

DO NOT REPLY [Bug 25600] - sessionDestroyed method (in HttpSessionListener) is being called twice

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25600>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25600

sessionDestroyed method (in HttpSessionListener) is being called twice

remm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



------- Additional Comments From remm@apache.org  2003-12-17 21:56 -------
Please don't whine, we didn't introduce this bug on purpose just to annoy you,
and the issue has been fixed already. The patch can be applied easily if you
need it.


  Index: StandardManager.java
  ===================================================================
  RCS file:
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardManager.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- StandardManager.java	29 Nov 2003 18:06:35 -0000	1.15
  +++ StandardManager.java	5 Dec 2003 09:28:55 -0000	1.16
  @@ -813,13 +813,7 @@
           for (int i = 0; i < sessions.length; i++) {
               StandardSession session = (StandardSession) sessions[i];
               if (!session.isValid()) {
  -                try {
  -                    expiredSessions++;
  -                    session.expire();
  -                } catch (Throwable t) {
  -                    log.error(sm.getString
  -                              ("standardManager.expireException"), t);
  -                }
  +                expiredSessions++;
               }
           }
           long timeEnd = System.currentTimeMillis();


*** This bug has been marked as a duplicate of 25234 ***

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org