hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35944] - default CONNECTION_MANAGER_TIMEOUT should not be zero
Date Thu, 04 Aug 2005 19:40:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35944>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35944





------- Additional Comments From garry@ascii-turf.net  2005-08-04 21:40 -------

ok, i have an update.

the problem seems to be that the method gets into an illegal state and instead of properly
releasing the 
connection back to the pool, throws this instead:

java.lang.IllegalStateException: Connection is not open
        at org.apache.commons.httpclient.HttpConnection.assertOpen(HttpConnection.java:1269)
        at org.apache.commons.httpclient.HttpConnection.isResponseAvailable(HttpConnection.java:872)
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
$HttpConnectionAdapter.isResponseAvailable(MultiThreadedHttpConnectionManager.java:1307)
        at org.apache.commons.httpclient.HttpMethodBase.responseBodyConsumed(HttpMethodBase.java:
2272)
        at org.apache.commons.httpclient.HttpMethodBase$1.responseConsumed(HttpMethodBase.java:
1755)
        at org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher
(AutoCloseInputStream.java:180)
        at org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:140)
        at org.apache.commons.httpclient.HttpMethodBase.releaseConnection(HttpMethodBase.java:1086)
...

this i think, as i've said before, comes about as a result of an unstable connection - no
idea if that's at 
my end or the server end.

this is the situation that gives you the hang: the last method didn't close/release properly
and so on the 
next call to MTCM.getConnection() just wait()s forever. 

unfortunately i turned off the trace of the httpclient just hours before this happened, ain't
that always 
the way.

hope this helps to clarify the issue.

cheers,

garry

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message