costin      01/04/21 10:49:35

  Modified:    src/share/org/apache/tomcat/modules/session
                        SessionExpirer.java
  Log:
  Work on 1418 - resources in "bad" state after shutdown.
  
  The Expirer is re-created on engine init.
  A better solution will be to make sure we can do Expirer.stop and
  then re-start it - but right now Expirer extends thread, and that doesn't work,
  we need to create a new one.
  
  Expirer needs a rewrite ( but not in 3.3 )
  
  Revision  Changes    Path
  1.3       +5 -1      
jakarta-tomcat/src/share/org/apache/tomcat/modules/session/SessionExpirer.java
  
  Index: SessionExpirer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/session/SessionExpirer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SessionExpirer.java       2001/03/23 02:24:36     1.2
  +++ SessionExpirer.java       2001/04/21 17:49:35     1.3
  @@ -89,7 +89,7 @@
       int manager_note;
   
       int checkInterval = 60;
  -    Expirer expirer=new Expirer();
  +    Expirer expirer=null;
       
       public SessionExpirer() {
       }
  @@ -110,7 +110,11 @@
       }
   
       // -------------------- Tomcat request events --------------------
  +
  +    // XXX use contextInit/shutdown for local modules
  +    
       public void engineInit( ContextManager cm ) throws TomcatException {
  +     expirer=new Expirer();
        expirer.setCheckInterval( checkInterval );
        expirer.setExpireCallback( new SessionExpireCallback(this, debug) );
        expirer.start();
  
  
  

Reply via email to