Closed GoogleCodeExporter closed 9 years ago
Interesting. I'm guessing this is part of my use of the
ThreadSafeClientConnManager in
HttpClient. The 6th call is failing, so there must be some limit of 5. I'll
take a look into
fixing this. For now, the work around is to stop calling exists() so many
times. =)
Original comment by latch...@gmail.com
on 25 Feb 2010 at 4:26
Original comment by latch...@gmail.com
on 25 Feb 2010 at 4:26
:) IMHO it's a bug in HttpClient, since your usage of
ThreadSafeClientConnManager
seems to be correct. I'd try with older HttpClient if possible. But only
guessing.
Original comment by dynaw...@gmail.com
on 25 Feb 2010 at 5:25
Could you please add some option whether to use thread safe or unsafe manager?
That
could be a temporary workaround...
Original comment by dynaw...@gmail.com
on 25 Feb 2010 at 5:27
Yea, I've been trying to think of a good way to do that.
Original comment by latch...@gmail.com
on 25 Feb 2010 at 5:34
I think the problem is in HttpClient's synchronization between
ConnPoolByRoute.java@323 and WaitingThread.
Original comment by dynaw...@gmail.com
on 25 Feb 2010 at 6:17
When uring httpclient 3.1 with jackrabbit webdav client the connection had to
be
released manually using PutMethod#releaseConnection() after execution. You sure
4.1
releases connections automatically.
Original comment by priitlii...@gmail.com
on 17 Apr 2010 at 8:02
rtfm for httpclient 4.x please.
Original comment by latch...@gmail.com
on 17 Apr 2010 at 3:13
I've hit this problem as well. The workaround that worked for me was to release
the
connection manually in branches that throw SardineException. So it looks that
HttpClient will not release the connection if you only check the status code...
Manual release is performed via response.getEntity().getContent().close()
Original comment by pdud...@gmail.com
on 31 May 2010 at 1:26
Calling HttpRequestBase.abort() makes even more sense. Attached is patch agains
Rev. 128
Original comment by pdud...@gmail.com
on 31 May 2010 at 1:33
Attachments:
This issue was closed by revision r129.
Original comment by latch...@gmail.com
on 1 Jun 2010 at 12:36
Original issue reported on code.google.com by
dynaw...@gmail.com
on 25 Feb 2010 at 4:12Attachments: