Re: PostMethod 's recycle method has problem

2004-06-11 Thread Himanshu Thube
] 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

Re: PostMethod 's recycle method has problem

2004-06-11 Thread Ortwin Glück
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

RE: PostMethod 's recycle method has problem

2004-06-11 Thread Kalnichevski, Oleg
#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

RE: PostMethod 's recycle method has problem

2004-06-11 Thread Foran, Christopher
: 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

Re: PostMethod 's recycle method has problem

2004-06-11 Thread Ortwin Glück
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

PostMethod 's recycle method has problem

2004-06-10 Thread Himanshu Thube
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.

RE: PostMethod 's recycle method has problem

2004-06-10 Thread Foran, Christopher
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