You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Ignacio J. Ortega" <na...@siapi.es> on 2001/03/21 22:35:08 UTC

RE: cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtim e BodyContentImpl.java

Glups sorry..

Now i'm trying to rebuild Tomcat 3.3 with that nice build and dist
dirs.., about 10 days out of tomcat almost enterely, biffed up of work,
i will try this night ( here ) to put up all my little things.. and
start doing another dev cycle, perhaps doing it better than the last
time ;), 

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: costin@apache.org [mailto:costin@apache.org]
> Enviado el: miƩrcoles 21 de marzo de 2001 20:51
> Para: jakarta-tomcat-cvs@apache.org
> Asunto: cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtime
> BodyContentImpl.java
> 
> 
> costin      01/03/21 11:51:06
> 
>   Modified:    src/share/org/apache/jasper/runtime 
> BodyContentImpl.java
>   Log:
>   Lucky fix - it shows up for some JSPs generating a lot of content.
>   Nacho - nice tuneup ( remove double copy ), you forgot one line :-)
>   
>   Revision  Changes    Path
>   1.9       +4 -1      
> jakarta-tomcat/src/share/org/apache/jasper/runtime/BodyContent
> Impl.java
>   
>   Index: BodyContentImpl.java
>   ===================================================================
>   RCS file: 
> /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/B
> odyContentImpl.java,v
>   retrieving revision 1.8
>   retrieving revision 1.9
>   diff -u -r1.8 -r1.9
>   --- BodyContentImpl.java	2001/03/10 01:20:23	1.8
>   +++ BodyContentImpl.java	2001/03/21 19:50:51	1.9
>   @@ -113,7 +113,8 @@
>    
>    	if (len <= Constants.DEFAULT_BUFFER_SIZE) {
>    	    tmp = new char [bufferSize + Constants.DEFAULT_BUFFER_SIZE];
>   -	    bufferSize = bufferSize * 2;
>   +	    //	    bufferSize = bufferSize * 2;
>   +	    bufferSize += Constants.DEFAULT_BUFFER_SIZE;
>    	} else {
>    	    tmp = new char [bufferSize + len];
>    	    bufferSize += len;
>   @@ -179,6 +180,8 @@
>    	    if (len >= bufferSize - nextChar)
>    	        reAllocBuff(len);
>    
>   +	    //System.out.println("XXX " + off + " " + (off+len) + " " +
>   +	    // nextChar + " " + bufferSize + " "+  cb.length);
>                s.getChars(off, off + len, cb, nextChar);
>    	    nextChar += len;
>            }
>   
>   
>   
>