Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 16299 invoked from network); 21 May 2008 21:52:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2008 21:52:14 -0000 Received: (qmail 69641 invoked by uid 500); 21 May 2008 21:52:11 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 69581 invoked by uid 500); 21 May 2008 21:52:11 -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 69570 invoked by uid 99); 21 May 2008 21:52:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2008 14:52:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex@planet-barclay.com designates 69.17.115.243 as permitted sender) Received: from [69.17.115.243] (HELO wibblejr.planet-barclay.com) (69.17.115.243) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 21 May 2008 21:51:24 +0000 Received: (qmail 29896 invoked from network); 21 May 2008 21:31:57 -0000 Received: from ip67-88-219-227.z219-88-67.customer.algx.net (HELO Alex-Barclays-Computer.local) (67.88.219.227) by softdnserror with SMTP; 21 May 2008 21:31:57 -0000 Message-ID: <483494D0.2080703@planet-barclay.com> Date: Wed, 21 May 2008 14:32:00 -0700 From: Alex Barclay User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Potential problem with COMET & sendfile References: <4833536E.9070108@planet-barclay.com> <1211357426.3241.4.camel@localhost.localdomain> <48346063.9040706@planet-barclay.com> <48348F64.4060707@hanik.com> In-Reply-To: <48348F64.4060707@hanik.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Filip Hanik - Dev Lists wrote: > I don't see any use case for Comet+sendfile make sense. > > but if you do it, you should > > ... > set your sendfile stuff > call CometEvent.close() > ..... > > ie, the event shouldn't be cometized when doing sendfile, it makes > zero sense since when the file is sent, the HTTP request is over. You're right. In this case because I'm dealing with the request in the begin event and doing a sendfile the request won't be cometized. The other case is where the verb is a put or a post at which point it will be cometized. Yes I am doing a close on the event, it breaks really horribly if you don't do this. Alex. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org