tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@apache.org>
Subject Re: Comet API question
Date Sun, 15 Apr 2007 11:53:25 GMT
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


Mime
View raw message