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 18596] - MultiThreadedHttpConnectionManager never reclaims unused connectons
Date Wed, 09 Apr 2003 12:54:59 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=18596>.
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=18596

MultiThreadedHttpConnectionManager never reclaims unused connectons





------- Additional Comments From becke@u.washington.edu  2003-04-09 12:54 -------
Carl,

Good catch.  You are quite right.  I remember thinking about that when working
on this originally, but I completely forgot about it.  I will try to fix this
tonight.  Since WeakReference does not override hashCode() and equals() the only
way to fix this is to iterate over the reference Map.

I'm not sure if there are actually as many connections open as suggested by
netstat.  With the current setup only 20 connections are ever open at once.  I
think what may be happening is that SimpleDownloader opens so many connections
so quickly that it opens(closes) connection faster than netstat can report them.
 So netstat is showing all of the connections that are opened, but it doesn't
necessarily mean that they are still open.

Mike

Mime
View raw message