tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4 Ajp13Connector.java
Date Sun, 21 Apr 2002 23:17:48 GMT
glenn       02/04/21 16:17:48

  Modified:    jk/java/org/apache/ajp/tomcat4 Ajp13Connector.java
  Log:
  Only start debug thread if debug > 0
  
  Revision  Changes    Path
  1.15      +15 -15    jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Connector.java
  
  Index: Ajp13Connector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Connector.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Ajp13Connector.java	20 Feb 2002 16:12:42 -0000	1.14
  +++ Ajp13Connector.java	21 Apr 2002 23:17:48 -0000	1.15
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Connector.java,v
1.14 2002/02/20 16:12:42 seguin Exp $
  - * $Revision: 1.14 $
  - * $Date: 2002/02/20 16:12:42 $
  + * $Header: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Connector.java,v
1.15 2002/04/21 23:17:48 glenn Exp $
  + * $Revision: 1.15 $
  + * $Date: 2002/04/21 23:17:48 $
    *
    * ====================================================================
    *
  @@ -93,7 +93,7 @@
    * Implementation of an Ajp13 connector.
    *
    * @author Kevin Seguin
  - * @version $Revision: 1.14 $ $Date: 2002/02/20 16:12:42 $
  + * @version $Revision: 1.15 $ $Date: 2002/04/21 23:17:48 $
    */
   
   
  @@ -994,9 +994,11 @@
   	    throw new LifecycleException
   		(sm.getString("ajp13Connector.alreadyStarted"));
   
  -        debugThread = new DebugThread();
  -        debugThread.setDaemon(true);
  -        debugThread.start();
  +        if (debug > 0) {
  +            debugThread = new DebugThread();
  +            debugThread.setDaemon(true);
  +            debugThread.start();
  +        }
   
           threadName = "Ajp13Connector[" + port + "]";
           threadGroup = new ThreadGroup(threadName);
  @@ -1081,14 +1083,12 @@
                   } catch (InterruptedException e) {
                       break;
                   }
  -                if (debug > 0) {
  -                    logger.log("active threads=" + threadGroup.activeCount());
  -                    System.out.println("===================================");
  -                    System.out.println("Ajp13Connector active threads="
  -                                       + threadGroup.activeCount());
  -                    threadGroup.list();
  -                    System.out.println("===================================");
  -                }
  +                logger.log("active threads=" + threadGroup.activeCount());
  +                System.out.println("===================================");
  +                System.out.println("Ajp13Connector active threads="
  +                                   + threadGroup.activeCount());
  +                threadGroup.list();
  +                System.out.println("===================================");
               }
           }
       }
  
  
  

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


Mime
View raw message