danmil 01/02/01 14:50:11 Modified: src/native/jk Tag: tomcat_32 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 No revision No revision 1.2.2.1 +6 -1 jakarta-tomcat/src/native/jk/Attic/jk_ajp12_worker.c Index: jk_ajp12_worker.c =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/native/jk/Attic/jk_ajp12_worker.c,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -r1.2 -r1.2.2.1 --- jk_ajp12_worker.c 2000/06/23 10:34:03 1.2 +++ jk_ajp12_worker.c 2001/02/01 22:50:09 1.2.2.1 @@ -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.2.2.1 $ * ***************************************************************************/ #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]