On 10/18/07, Roland Weber <[EMAIL PROTECTED]> wrote:
>
> Puneet Lakhina wrote:
> >  public void run() {
> >
> >         HttpClient client = new HttpClient();
> >         PostMethod postMethod  = new PostMethod(sameURL);
> >         /*Set parameters in post method*/
> >         client.executeMethod();
> >          /*Do something with the response*/
> >         postMethod.releaseConnection();
> > }
>
> This will leak a connection for every request, until they
> are released by garbage collection.


Isnt postMethod.releaseConnection() done to prevent that??
-- 
Puneet
http://sahyog.blogspot.com/

Reply via email to