You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ng Aik Teong <Ng...@gtsb.com.my> on 2001/08/20 13:53:53 UTC

RE: Connection aborted by peer: socket write error

it cause by  a bug in
org/apache/tomcat/code/BufferedServletOutputStream.java
 
there is a cicular buffer  where it set to 8k, when the html file which have
included  files which  size is
more  then 8k , the above message will occur. 
the cicular buffer was not reset after commit.
Below is the source .
 
   public void recycle() {
 //  System.out.println("Recycle BOS " );
 bufferCount = 0;
 totalCount = 0;
 closed = false;
    usingWriter = false;
    resA.setBufferCommitted(false);  // this is missing in the source.
    }