tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach ...@objektpark.de>
Subject Re: Comet API question
Date Sun, 15 Apr 2007 12:28:35 GMT
HI Remy

Am 15.04.2007 um 13:53 schrieb Remy Maucherat:

> 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.
>
Yes,  I want implement access filter. As filter detect overload, it  
set a event retry timeout and  give back the event.
Later the event comes back and mark as event type RETRY.

>> 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
>

Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message