Hi Roland,
To implement disconnect I am doing following:
if(httpClient != null)
{
MultiThreadedHttpConnectionManager mt =
(MultiThreadedHttpConnectionManager)httpClient.getHttpConnectionManager(
);
if(mt != null)
{
mt.shutdown();
}
}
Another option is to call
MultiThreadedHttpConnectionManager.shutDownALL().
In the second option all the static resources will be release and all
threads will be stopped.
So is it safe to use second option?
Regards,
Lalit
-----Original Message-----
From: Roland Weber [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 18, 2007 4:15 PM
To: HttpClient User Discussion
Cc: [email protected]
Subject: Re: How to implement disconnect
Hello Lalit,
> I am connecting to an http server and executing http request by using
> apache http client.
>
> Then I want to disconnect. How can I implement disconnect?
>
This is mentioned in the optimization guide:
http://jakarta.apache.org/commons/httpclient/performance.html#Connection
_persistence
best regards,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]