I must be misunderstanding what I'm reading, but the HttpClient doc seems to 
have conflicting information about how to use an HttpClient instance from 
multiple threads.

In section 2.9, "Multithreaded request execution", there's the following 
statement:

"When equipped with a pooling connection manager such as 
ThreadSafeClientConnManager, HttpClient can be used to execute multiple 
requests simultaneously using multiple threads of execution."

In section 5.1, "HttpClient Façade", there is the following statement:

"DefaultHttpClient is thread safe. It is recommended that the same instance of 
this class is reused for multiple request executions. When an instance of 
DefaultHttpClient is no longer needed and is about to go out of scope the 
connection manager associated with it must be shut down by calling the 
ClientConnectionManager#shutdown() method."

Can someone explain this seeming discrepancy?



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to