Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 61900 invoked from network); 25 May 2007 09:33:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 May 2007 09:33:07 -0000 Received: (qmail 48472 invoked by uid 500); 25 May 2007 09:33:09 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 48415 invoked by uid 500); 25 May 2007 09:33: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 48404 invoked by uid 99); 25 May 2007 09:33:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 02:33:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 02:33:02 -0700 Received: (qmail 22130 invoked from network); 25 May 2007 04:29:55 -0500 Received: from unknown (HELO ?192.168.2.3?) (195.216.52.112) by halosg.com with SMTP; 25 May 2007 04:29:55 -0500 Message-ID: <4656AD10.1020109@hanik.com> Date: Fri, 25 May 2007 11:32:00 +0200 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r541337 - in /tomcat/trunk/java/org/apache/catalina/connector: CometEventImpl.java CoyoteAdapter.java References: <20070524154730.47AB51A981A@eris.apache.org> <4655B69D.9020604@apache.org> In-Reply-To: <4655B69D.9020604@apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Remy Maucherat wrote: > fhanik@apache.org wrote: >> Author: fhanik >> Date: Thu May 24 08:47:29 2007 >> New Revision: 541337 >> >> URL: http://svn.apache.org/viewvc?view=rev&rev=541337 >> Log: >> Add in support to check if the current thread is a Tomcat 'worker' >> thread or not, that way we can decide if the invokations are >> appropriate or not > > I dislike this sort checks (mostly because of the ugly mechanics that > goes along, obviously). I don't really see the point either. I know you do, however, it's not expensive, it's not a lot of code, and it will avoid a lot of bugs and questions on the user list. Servlet programmers aren't really familiar with connection/poller mechanics, and we can't expect them to be either. so what we need to do is that the API is so straight forward and throws the correct exceptions if they invoke methods that would interfere with the underlying connection asynchronously. Filip --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org