tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector Connector.java
Date Fri, 20 May 2005 06:14:36 GMT
billbarker    2005/05/19 23:14:36

  Modified:    catalina/src/share/org/apache/catalina/connector
                        Connector.java
  Log:
  When using an AJP/1.3 Connector, choose a better default buffer size since the HTTP/1.1
Connector default kills performance with Apache2.
  
  If somebody comes up with a better solution, of course this is really simple to revert.
  
  As reported by: Mladen
  
  Revision  Changes    Path
  1.19      +5 -1      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/Connector.java
  
  Index: Connector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/Connector.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Connector.java	30 Apr 2005 03:32:43 -0000	1.18
  +++ Connector.java	20 May 2005 06:14:36 -0000	1.19
  @@ -899,6 +899,10 @@
   
           Response response = new Response();
           response.setConnector(this);
  +        if("AJP/1.3".equals(getProtocol())) {
  +            // we can't shrink it, so set to 2*max-ajp-packet-size
  +            response.setBufferSize(2*8184);
  +        }
           return (response);
   
       }
  
  
  

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


Mime
View raw message