tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteConnector.java CoyoteRequest.java
Date Thu, 10 Jul 2003 15:51:40 GMT
luehe       2003/07/10 08:51:40

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteConnector.java CoyoteRequest.java
  Log:
  Consider CoyoteConnector's bufferSize property when creating CoyoteRequest objects
  
  Revision  Changes    Path
  1.10      +3 -3      jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteConnector.java
  
  Index: CoyoteConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteConnector.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CoyoteConnector.java	22 May 2003 03:43:37 -0000	1.9
  +++ CoyoteConnector.java	10 Jul 2003 15:51:39 -0000	1.10
  @@ -143,7 +143,7 @@
       /**
        * The input buffer size we should create on input streams.
        */
  -    private int bufferSize = 2048;
  +    private int bufferSize = InputBuffer.DEFAULT_BUFFER_SIZE;
   
   
       /**
  @@ -1122,7 +1122,7 @@
        */
       public Request createRequest() {
   
  -        CoyoteRequest request = new CoyoteRequest();
  +        CoyoteRequest request = new CoyoteRequest(getBufferSize());
           request.setConnector(this);
           return (request);
   
  
  
  
  1.10      +13 -5     jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CoyoteRequest.java	6 Jun 2003 19:04:50 -0000	1.9
  +++ CoyoteRequest.java	10 Jul 2003 15:51:39 -0000	1.10
  @@ -252,7 +252,7 @@
       /**
        * The associated input buffer.
        */
  -    protected InputBuffer inputBuffer = new InputBuffer();
  +    protected InputBuffer inputBuffer;
   
   
       /**
  @@ -394,6 +394,14 @@
       
       // --------------------------------------------------------- Public Methods
   
  +    /**
  +     * Constructor
  +     *
  +     * @param inBufSize The input buffer size
  +     */
  +    public CoyoteRequest(int inBufSize) {
  +	inputBuffer = new InputBuffer(inBufSize);
  +    }
   
       /**
        * Release all object references, and initialize instance variables, in
  
  
  

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