tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector ResponseStream.java
Date Thu, 08 Mar 2001 21:41:04 GMT
remm        01/03/08 13:41:04

  Modified:    catalina/src/share/org/apache/catalina/connector
                        ResponseStream.java
  Log:
  - It was not possible to specify an offset when calling write() on the
  Outputstream returned by HttpServletResponse. For this reason it was
  impossible to run a SOAP 2.0 Server on Tomcat 4 (it uses an offset in
  write() for the output).
  
  Patch submitted by David Jilli <jilli at xo3.com>
  
  Note: I thought that had been patched before :-(
  
  Revision  Changes    Path
  1.3       +5 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseStream.java
  
  Index: ResponseStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseStream.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ResponseStream.java	2000/12/13 23:45:37	1.2
  +++ ResponseStream.java	2001/03/08 21:41:03	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseStream.java,v
1.2 2000/12/13 23:45:37 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/12/13 23:45:37 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseStream.java,v
1.3 2001/03/08 21:41:03 remm Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/03/08 21:41:03 $
    *
    * ====================================================================
    *
  @@ -79,7 +79,7 @@
    * enforce not writing more than that many bytes on the underlying stream.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.2 $ $Date: 2000/12/13 23:45:37 $
  + * @version $Revision: 1.3 $ $Date: 2001/03/08 21:41:03 $
    */
   
   public class ResponseStream
  @@ -265,7 +265,7 @@
   	int actual = len;
   	if ((length > 0) && ((count + len) >= length))
   	    actual = length - count;
  -	((ResponseBase) response).write(b, 0, actual);
  +	((ResponseBase) response).write(b, off, actual);
   	count += actual;
   	if (actual < len)
   	    throw new IOException(sm.getString("responseStream.write.count"));
  
  
  

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


Mime
View raw message