tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common HandlerRequest.java
Date Thu, 07 Feb 2002 17:07:35 GMT
costin      02/02/07 09:07:35

  Modified:    jk/java/org/apache/jk/common HandlerRequest.java
  Log:
  Don't generate ajp13.id if conf/ dir not found or if no secret.
  
  Revision  Changes    Path
  1.5       +9 -1      jakarta-tomcat-connectors/jk/java/org/apache/jk/common/HandlerRequest.java
  
  Index: HandlerRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/HandlerRequest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HandlerRequest.java	6 Feb 2002 17:48:22 -0000	1.4
  +++ HandlerRequest.java	7 Feb 2002 17:07:35 -0000	1.5
  @@ -260,9 +260,17 @@
           int portInt=8009; // tcpCon.getPort();
           InetAddress address=null; // tcpCon.getAddress();
   
  +        if( requiredSecret == null )
  +            return;
  +        
           File f1=new File( wEnv.getJkHome() );
  +        File f2=new File( f1, "conf" );
  +        if( ! f2.exists() ) {
  +            log( "No conf dir for ajp13.id " + f2 );
  +            return;
  +        }
           
  -        File sf=new File( f1, "conf/ajp13.id");
  +        File sf=new File( f2, "ajp13.id");
           
           if( dL > 0) d( "Using stop file: "+sf);
   
  
  
  

--
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