Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 6756 invoked from network); 15 Apr 2007 11:53:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Apr 2007 11:53:52 -0000 Received: (qmail 84412 invoked by uid 500); 15 Apr 2007 11:53:51 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 84362 invoked by uid 500); 15 Apr 2007 11:53:51 -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 84341 invoked by uid 99); 15 Apr 2007 11:53:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 04:53:51 -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.42.36] (HELO smtp6-g19.free.fr) (212.27.42.36) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 04:53:43 -0700 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 5E65A6D4C0 for ; Sun, 15 Apr 2007 13:53:22 +0200 (CEST) Message-ID: <46221235.4010403@apache.org> Date: Sun, 15 Apr 2007 13:53:25 +0200 From: Remy Maucherat User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Comet API question References: <92955326-0A12-4B32-9E28-6242DE06D105@objektpark.de> In-Reply-To: <92955326-0A12-4B32-9E28-6242DE06D105@objektpark.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Peter Rossbach wrote: > Hi Filip and Remy > > Often, if my HTTP request needs to get a database connection and the > connection pool is empty, > the request will block for some period of time. The problem is that the > blocking request will consume a thread while it it blocking. > > How can I free up the request thread when the DB pool can be block? Hmm, there's a fundamental problem IMO: you need a thread to block on the DB pool anyway. > Can I set a event retry timeout and get back the request thread without > an error? At the moment, there are only events for IO (including timeout, which is an "error", but not fatal - you can ignore that event and the connection will go back to the poller). R�my --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org