hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Fabris <cavaliereosc...@email.it>
Subject Re: MultiThreadedConnectionManager based on commons pool
Date Fri, 07 May 2004 10:06:04 GMT
On 07/05/2004 10.38, Kalnichevski, Oleg wrote:

> Andrea,
> New HttpClient 3.0 API has not been properly documented yet (documentation and test case
coverage will become a top priority right after the 3.0-alpha1 release). The idle connection
management with the multi-threaded connection manager does take a little bit of explaining.
Per default the connection manager does not attempt to close idle connections as before. It
simply provides the user with the means to handle idle connections the way the user sees fit.
There's a new method in the HttpConnectionManager interface called #closeIdleConnections(long)
intended to advise the connection manager to drop those connections that have been idle for
the specified period of time. This method can be invoked either from the main communication
thread during a period of inactivity or from a dedicated  monitor thread on a regular basis.
The helper class IdleConnectionTimeoutThread can be used to easily set up a simple idle connection
monitor. The reason for not running a dedicated idle con
nection monitor per default is to keep HttpClient usable in an EJB container. The EJB spec
requires that enterprise beans do no explicit thread management.
> Give the new features another shot. They may still prove not that bad
> I just had the first cursory look at your commons-pool based implementation. It looks
very promising but the code currently requires a few tweaks to be compatible with 3.0 API.
> Oleg

Well, i thought the patch was for 2.0 branch, not 3.0!!! (i have to 
admit that i gave only a fast look at the bugzilla reports on the list, 
'cause i had a lot of work to do.. ;-) )
In fact i developed the code from the official 2.0 code!

However, i'll try to download the source from cvs, and compile it.. i 
think that the nightly builds are from 2.0 branch, or not?

By the way, if you need further information about my code, feel free to ask

Errore Apertura DB

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

View raw message