danmil      01/02/01 14:52:11

  Modified:    src/native/mod_jk/common jk_ajp12_worker.c
  Log:
  Fixed bug which was sending mod_jk into infinite loop if client sent less
  data than specified in content-length.  Bugzilla report 264 (and a host of
  others).
  
  Contributed by Brian Vetter ([EMAIL PROTECTED]).
  
  Revision  Changes    Path
  1.3       +5 -0      jakarta-tomcat/src/native/mod_jk/common/jk_ajp12_worker.c
  
  Index: jk_ajp12_worker.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/common/jk_ajp12_worker.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- jk_ajp12_worker.c 2000/11/10 18:48:50     1.2
  +++ jk_ajp12_worker.c 2001/02/01 22:52:09     1.3
  @@ -57,7 +57,7 @@
    * Description: ajpv1.2 worker, used to call local or remote jserv hosts   *
    * Author:      Gal Shachor <[EMAIL PROTECTED]>                           *
    * Based on:    jserv_ajpv12.c from Jserv                                  *
  - * Version:     $Revision: 1.2 $                                               *
  + * Version:     $Revision: 1.3 $                                               *
    ***************************************************************************/
   
   #include "jk_ajp12_worker.h"
  @@ -465,6 +465,11 @@
                       return JK_FALSE;
                   }
                   jk_log(l, JK_LOG_DEBUG, "ajpv12_handle_request, sent %d bytes\n", 
this_time);
  +            } else if (this_time == 0) {
  +             jk_log(l, JK_LOG_ERROR,
  +                     "In ajpv12_handle_request, Error: short read. content length 
is %d, read %d\n",
  +                     s->content_length, so_far);
  +             return JK_FALSE;
               }
           }
       }
  
  
  

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

Reply via email to