hgomez      01/09/14 08:58:58

  Modified:    src/share/org/apache/tomcat/modules/server
                        Ajp13Interceptor.java
  Log:
  Pass debug flag from data set in server.xml to
  Ajp13/Ajp13Request. Very usefull in debug stage
  
  Revision  Changes    Path
  1.15      +16 -6     
jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java
  
  Index: Ajp13Interceptor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Ajp13Interceptor.java     2001/09/13 12:08:07     1.14
  +++ Ajp13Interceptor.java     2001/09/14 15:58:58     1.15
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java,v
 1.14 2001/09/13 12:08:07 larryi Exp $
  - * $Revision: 1.14 $
  - * $Date: 2001/09/13 12:08:07 $
  + * $Header: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java,v
 1.15 2001/09/14 15:58:58 hgomez Exp $
  + * $Revision: 1.15 $
  + * $Date: 2001/09/14 15:58:58 $
    *
    * ====================================================================
    *
  @@ -101,6 +101,8 @@
           Ajp13Request req=new Ajp13Request();
           Ajp13Response res=new Ajp13Response();
           Ajp13 con=new Ajp13();
  +        con.setDebug(debug);
  +        req.setDebug(debug);
           con.setTomcatAuthentication(isTomcatAuthentication());
           cm.initRequest(req, res);
           thData[0]=req;
  @@ -165,6 +167,10 @@
                        continue;
                    }
                }
  +
  +        // special case - invalid AJP13 packet, error 
  +        // decoding packet ...
  +        // we drop the connection rigth now
                if( status != 200 )
                    break;
   
  @@ -218,13 +224,18 @@
   
   class Ajp13Request extends Request 
   {
  -    Ajp13 ajp13=new Ajp13();
  -    
  +    Ajp13 ajp13 = new Ajp13();
  +    int   dL    = 0;
  + 
       public Ajp13Request() 
       {
           super();
       }
       
  +    public void setDebug(int level) {
  +        dL = level;
  +    }
  +
       protected int receiveNextRequest() throws IOException 
       {
        return ajp13.receiveNextRequest( this );
  @@ -262,7 +273,6 @@
        if( ajp13!=null) ajp13.recycle();
       }
   
  -    private static final int dL=0;
       private void d(String s ) {
        System.err.println( "Ajp13Request: " + s );
       }
  
  
  

Reply via email to