Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 50188 invoked from network); 4 May 2007 01:14:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2007 01:14:29 -0000 Received: (qmail 88468 invoked by uid 500); 4 May 2007 01:14:33 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 88430 invoked by uid 500); 4 May 2007 01:14:32 -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 88419 invoked by uid 99); 4 May 2007 01:14:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2007 18:14:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.27.60.42] (HELO postfix1-g20.free.fr) (212.27.60.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2007 18:14:24 -0700 Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by postfix1-g20.free.fr (Postfix) with ESMTP id 53E1AF0F28A for ; Fri, 4 May 2007 03:14:03 +0200 (CEST) Received: from [192.168.0.1] (gou06-1-82-224-99-120.fbx.proxad.net [82.224.99.120]) by smtp6-g19.free.fr (Postfix) with ESMTP id 831C76D3AB for ; Fri, 4 May 2007 03:13:21 +0200 (CEST) Message-ID: <463A88B1.6030901@apache.org> Date: Fri, 04 May 2007 03:13:21 +0200 From: Remy Maucherat User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Proposed new CometEvent.notify method References: <4638B4DE.4090800@apache.org> <463945DC.9050606@apache.org> <4639F5F0.8030008@hanik.com> <4639FB90.3020406@apache.org> <463A064A.2090709@hanik.com> <463A0BDF.7060406@apache.org> <463A1520.5070104@hanik.com> <463A18AE.60804@apache.org> <463A6CC5.5090804@hanik.com> <463A77A8.9020406@apache.org> <463A8130.9060106@hanik.com> In-Reply-To: <463A8130.9060106@hanik.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Filip Hanik - Dev Lists wrote: >> Ok, I'll try something in the meantime in CoyoteAdapter, since it's >> trivial (and I think does all that is needed at this point). > The available() has a side effect, if there is a partial or non valid > chunked header (ie the client also sends some garbage), available() > returns >0, and the read() goes into a forever blocking read as no more > data is coming in. > this was not the case before, as a READ event, you did one read, and > then available returned 0, and you'd be fine until next READ event. > since it's a client data error, I'm ok with it, question is, how common > are these client errors. It doesn't really make a difference. Even if you do only one read during the read event, it is possible to only send a portion of the chunk header, causing the ChunkedInputBuffer to block if its previous chunk was fully read (or if it is the first chunk). The only realistic solution is to add a system property forbidding reads during parsing of the chunk header, as I don't think it's a very reasonable situation. >> I would be ok to tag 6.0.13 before doing any further functional >> changes, as it contains numerous bugfixes since 6.0.10. > Let us wait a few days for these available() changes to get some > feedback, then we can tag and go through our stability tests. Ok. I was ready to tag tomorrow evening before starting on the timeout feature for APR, but I can wait more if you have changes to do (otherwise, I don't think anyone is going to really test since it's the WE). I can tag again if there's a horrible bug. R�my --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org