Author: hgomez
Date: Wed May 16 00:40:01 2007
New Revision: 538457

URL: http://svn.apache.org/viewvc?view=rev&rev=538457
Log:
On i5/OS, we still have the sent_bodyct cleared. Need further investigation by 
Rochester Lab

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?view=diff&rev=538457&r1=538456&r2=538457
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Wed May 16 00:40:01 
2007
@@ -314,11 +314,6 @@
         }
     }
 
-  /* under i5/OS this flag is not set correctly */
-#ifdef AS400
-        r->sent_bodyct = 1;
-#endif
-
     /* this NOP function was removed in apache 2.0 alpha14 */
     /* ap_send_http_header(r); */
     p->response_started = JK_TRUE;
@@ -2230,7 +2225,14 @@
             if (rc > 0) {
                 /* If tomcat returned no body and the status is not OK,
                    let apache handle the error code */
+
+/* [EMAIL PROTECTED] : under i5/OS sent_bodyct is not set correctly */
+/*                   check for header_only to see if there was a body */
+#ifdef AS400
+                               if (r->header_only && r->status >= 
HTTP_BAD_REQUEST) {
+#else
                 if (!r->sent_bodyct && r->status >= HTTP_BAD_REQUEST) {
+#endif
                     jk_log(xconf->log, JK_LOG_INFO, "No body with status=%d"
                            " for worker=%s",
                            r->status, worker_name);



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

Reply via email to