tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Vetter <...@motive.com>
Subject [PATCH] for Bugzilla Report 264 (mod_jk gets in an infinite loop)
Date Thu, 01 Feb 2001 21:56:29 GMT
This patch fixes the problem when a client closes the connection before sending all of the
data in a POST. Someone with CVS privileges please check this in.

Thanks,

Brian

--- jk_ajp12_worker.c.orig    Tue Oct 24 09:44:46 2000
+++ jk_ajp12_worker.c Tue Oct 24 09:52:31 2000
@@ -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;
             }
         }
     }
Mime
View raw message