costin      2002/06/20 11:47:48

  Modified:    jk/java/org/apache/jk/common MsgAjp.java
  Log:
  Better debug if error happens.
  
  Revision  Changes    Path
  1.11      +1 -6      
jakarta-tomcat-connectors/jk/java/org/apache/jk/common/MsgAjp.java
  
  Index: MsgAjp.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/MsgAjp.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MsgAjp.java       19 Jun 2002 18:24:49 -0000      1.10
  +++ MsgAjp.java       20 Jun 2002 18:47:48 -0000      1.11
  @@ -209,12 +209,6 @@
        * @param len The number of bytes to copy.  
        */
       public void appendBytes( byte b[], int off, int numBytes ) {
  -        if( pos + numBytes >= buf.length ) {
  -            log.error( "Buffer overflow buf.len=" + buf.length + " pos=" +
  -                       pos + " data=" + numBytes );
  -            dump("Overflow");
  -            return;
  -        }
           appendInt( numBytes );
           cpBytes( b, off, numBytes );
           appendByte(0);
  @@ -224,6 +218,7 @@
           if( pos + numBytes >= buf.length ) {
               log.error("Buffer overflow: buffer.len=" + buf.length + " pos=" +
                         pos + " data=" + numBytes );
  +            dump("Overflow/coBytes");
               return;
           }
           System.arraycopy( b, off, buf, pos, numBytes);
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to