commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sutton <>
Subject RE: [httpclient] MultiThreadedHttpConnectionManager : connections available
Date Wed, 09 Apr 2003 22:22:31 GMT
Hi Benoit,
I think what your looking for is:

HostConfiguration hostConfiguration = new HostConfiguration();
// Optionally set the proxy information for the host configuration as well.

manager.getMaxConnectionsPerHost() -

I'm not sure when those specific methods were added, you may need to upgrade
to alpha3 or possibly even a recent nightly build.  We anticipate beta 1
will be release in the next week or so and that will definitely include
these methods.

You may also be interested in the work that Mike Becke is doing with
MultiThreadedHttpConnectionManager to make it more configurable.  See

Hope that helps,

Adrian Sutton, Software Engineer
Ephox Corporation

-----Original Message-----
From: Benoit Mathieu []
Sent: Wednesday, 9 April 2003 9:29 PM
To: Jakarta Commons Users List
Subject: [httpclient] MultiThreadedHttpConnectionManager : connections

Hi all,

I'm using HttpClient with an MultiThreadedHttpConnectionManager (MTHCM), and

i'd like to know how many "connection are available" for a HostConfiguration

("connection available" means free connections + connections i can create if

maxConnection had not been reached). I found no method for that in the
I use httpclient 2.0 alpha2.

Does anybody have an idea ?

thanks for your help


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message