craigmcc    01/01/13 14:29:44

  Modified:    catalina/src/share/org/apache/catalina/connector
                        ResponseBase.java
  Log:
  Port forward the setBufferSize() bug fix from Tomcat 4.0.
  
  Revision  Changes    Path
  1.10      +5 -5      
jakarta-tomcat-4.1/catalina/src/share/org/apache/catalina/connector/ResponseBase.java
  
  Index: ResponseBase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.1/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ResponseBase.java 2001/01/04 19:49:16     1.9
  +++ ResponseBase.java 2001/01/13 22:29:43     1.10
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.1/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v
 1.9 2001/01/04 19:49:16 remm Exp $
  - * $Revision: 1.9 $
  - * $Date: 2001/01/04 19:49:16 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.1/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v
 1.10 2001/01/13 22:29:43 craigmcc Exp $
  + * $Revision: 1.10 $
  + * $Date: 2001/01/13 22:29:43 $
    *
    * ====================================================================
    *
  @@ -88,7 +88,7 @@
    * the connector-specific methods need to be implemented.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.9 $ $Date: 2001/01/04 19:49:16 $
  + * @version $Revision: 1.10 $ $Date: 2001/01/13 22:29:43 $
    */
   
   public abstract class ResponseBase
  @@ -742,7 +742,7 @@
        */
       public void setBufferSize(int size) {
   
  -     if (bufferCount > 0)
  +     if (committed || (bufferCount > 0))
            throw new IllegalStateException
                (sm.getString("responseBase.setBufferSize.ise"));
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to