]
Sent: Thursday, June 10, 2004 10:18 PM
To: [EMAIL PROTECTED]
Subject: PostMethod 's recycle method has problem
Hi all,
Thanks for all your answers for my questions till now. I have a problem
with PostMethod. When I reuse the same method it gives a exception that
PostMethod needs
Himanshu Thube wrote:
Thanks for all your answers for my questions till now. I have a problem
with PostMethod. When I reuse the same method it gives a exception that
PostMethod needs to be recycled. So I had put a check with help of
hasbeenUsed() method of PostMethod and trying to recycle the
#releaseConnection, though
Oleg
-Original Message-
From: Himanshu Thube [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 17:52
To: Commons HttpClient Project
Subject: Re: PostMethod 's recycle method has problem
Hi Christopher
Well thats the main problem. When my code comes
: Friday, June 11, 2004 3:35 AM
To: Commons HttpClient Project
Subject: RE: PostMethod 's recycle method has problem
Himanshu,
Try setting socket timeout to a non-zero value. HttpMethod#recycle among
many things calls HttpMethod#releaseConnection which in its turn
attempts to reads the remaining
Foran, Christopher wrote:
But what if you want a persistent connection?
HTTPClient handles persistent connections with the connection manager.
If you call
releaseConnection() are you not dropping the line?
No, you are returning the connection to the pool. There is no guarantee
that you will
Hi all,
Thanks for all your answers for my questions till now. I have a problem
with PostMethod. When I reuse the same method it gives a exception that
PostMethod needs to be recycled. So I had put a check with help of
hasbeenUsed() method of PostMethod and trying to recycle the PostMethod.
I think I know the answer to this one. You need to call .recycle()
after every .execute().
-Original Message-
From: Himanshu Thube [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 10:18 PM
To: [EMAIL PROTECTED]
Subject: PostMethod 's recycle method has problem
Hi all,
Thanks