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 24309] - MultiThreadedHttpConnectionManager daemon Thread never GC'd
Date Fri, 31 Oct 2003 23:34:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24309>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24309

MultiThreadedHttpConnectionManager daemon Thread never GC'd





------- Additional Comments From eric@tibco.com  2003-10-31 23:34 -------
I'm not entirely satisfied with my previous patch, as it _should_ be possible
for the ReferenceQueueThread to detect that it is no longer needed, and exit on
its own.  It strikes me that that approach would actually require two rounds of
gc to actually collect the thread - one to indicate to the ReferenceQueueThread
that the manager had been gc'd, and one to gc the thread itself.  Absent that
kind of logic, I've put an explicit "shutdown" call on the connection manager.

You can see the bug in action if you comment out the line in
TestHttpConnectionManager.testDroppedThread() that reads: "mthcm.shutdown();",
then run the test cases.

---------------------------------------------------------------------
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