> And what if we create an HttpClient instance with > > HttpClient agent = new HttpClient(); > > in a request, do we need any shutdown() like method call?
Guillaume, Ideally you do. Per default HttpClient uses SimpleHttpConnectionManager as its connection manager. Even though SimpleHttpConnectionManager employs only one connection, it does keep it alive whenever possible. This renders SimpleHttpConnectionManager susceptible to the same dangling connection problem, albeit not at the same level as MultiThreadedHttpConnectionManager The trouble is that SimpleHttpConnectionManager does not provide shutdown method in the 2.0 branch. So, if you do have to instantiate tons of HttpClients in your application, you should seriously consider providing a custom connection manager that can be cleanly shut down Hope this helps Oleg *************************************************************************************************** The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]