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 29383] - MultiThreadedConnectionManager Accounting Problems
Date Fri, 04 Jun 2004 01:57:16 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=29383>.
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=29383

MultiThreadedConnectionManager Accounting Problems





------- Additional Comments From becke@u.washington.edu  2004-06-04 01:57 -------
Sorry for all the spam on this one.  I accidentally created the bug before I finished filling
out the form.

The attached patch adds deleteClosedConnections() which in combination with closeIdleConnections()

should do what we're looking for.  I'm not entirely satisfied with this solution as it involves
calling 
HttpConnection.isOpen(), but I think it's the only way to be sure that we get rid of connections
that are 
not longer needed.  The only other possibility would be to disable staleConnectionChecking
on the 
connections or to add a isClosed() method to HttpConnection that does not involve isStale().

This patch does not include any connection statistics.

Please let me know what you think.

Mike

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


Mime
View raw message