hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cabbar Duzayak <dcab...@yahoo.com>
Subject Re: HttpClient initialization, when/where?
Date Wed, 12 May 2004 11:48:01 GMT
Well,

This information is more than I need;)

Appreciate your help.

--- Roland Weber <ROLWEBER@de.ibm.com> wrote:
> Hi Duzayak (?),
> 
> the MultiThreadedHCM is called so because it allows
> for multiple threads to use the same HttpClient. It
> has
> to be used if the application is multithreaded.
> 
> The connection pool limits the number of
> simultaneous
> connections, to a particular host and in general. It
> keeps
> resource usage in check. Also, if there are many
> requests
> to the same host, open connections may be reused,
> which avoids the overhead of establishing a new
> connection for each request.
> If you want to know how it works, feel free to look
> at
> the source code. It's open :-)
> 
> cheers,
>   Roland
> 
> 
> 
> 
> 
> Cabbar Duzayak <dcabbar@yahoo.com>
> 12.05.2004 12:26
> Please respond to "Commons HttpClient Project"
>  
>         To:     Commons HttpClient Project 
> <commons-httpclient-dev@jakarta.apache.org>
>         cc: 
>         Subject:        Re: HttpClient
> initialization, when/where?
> 
> 
> Can you please elaborate a bit how this connection
> pool and multithreaded HCM work? Cause, given that
> httpclient will be executed within my thread, why do
> we need a multithreaded HCM? Also, connection pool
> is
> used for sharing connections between threads? How
> exactly does it work, what does it improve?
> 
> Thanks a lot for the information!
> 
> 
> 
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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


Mime
View raw message