Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 93866 invoked from network); 29 Dec 2005 10:21:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Dec 2005 10:21:14 -0000 Received: (qmail 89339 invoked by uid 500); 29 Dec 2005 10:21:10 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 88779 invoked by uid 500); 29 Dec 2005 10:21:08 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 88768 invoked by uid 99); 29 Dec 2005 10:21:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2005 02:21:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [207.113.241.148] (HELO iss04.interliant.com) (207.113.241.148) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2005 02:21:06 -0800 Received: from EX-008.mail.navisite.com (ex-008.interliant.com [207.113.240.188]) by iss04.interliant.com (8.10.2/8.10.2) with ESMTP id jBTANqv10414 for ; Thu, 29 Dec 2005 04:23:52 -0600 (CST) Received: from [192.168.0.80] ([213.202.86.27]) by EX-008.mail.navisite.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Dec 2005 04:20:41 -0600 Message-ID: <43B3B87B.1030800@apache.org> Date: Thu, 29 Dec 2005 11:20:43 +0100 From: Mladen Turk User-Agent: Mozilla X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r359753 - /tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/Http11Processor.java References: <20051229075856.43895.qmail@minotaur.apache.org> <43B3A335.9040001@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Dec 2005 10:20:42.0233 (UTC) FILETIME=[85C5C690:01C60C61] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Bill Barker wrote: > > Without actually checking, mod_jk/mod_proxy_ajp should only send an > unrequested initial bodyChunk if the client sends a CL. So if there is no > CL, Tomcat will send back GET_BODY_CHUNK message, and act on the response > from Httpd/IIS/SunOne. > For reading initial body mod_jk( and mod_ajp) relies on web server providing initial body. For apache we use ap_get_client_block that will return body length if CL is present or in case of chunked encoding. There is however one more thing that needs to be resolved and is pretty important. JK code in Tomcat has no way to figure out if the AJP13_SEND_BODY_CHUNK has failed or not due to client error (for example client closed browser before entire data has been sent). Now I think that the JK connector recycles the current send loop in case there is a 'new' request instead SEND_BODY_CHUNK while the connector was in the send loop, but it does not propagate that to the upper chain, so Tomcat on the next request returns 304 (Not Modified) for the same resource although there was error in previous send. So, in case mod_jk sends AJP13_FORWARD_REQUEST while the Tomcat part was in the SEND_BODY_CHUNK chunk loop the Tomcat part of connector must behave like the connection was closed and then re-established (without closing the socket of course). Regards, Mladen. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org