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 25372] - auto close idle connections
Date Sun, 25 Apr 2004 23:25:00 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=25372>.
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=25372

auto close idle connections





------- Additional Comments From olegk@apache.org  2004-04-25 23:24 -------
Mike, I know I have been torturing you for days with this patch, but I just
realized there's a small issue with the use of HashMap to store connections in
the IdleConnectionHandler. What if an attempt is made to add another connection
within the same millisecond? This scenario is highly unlikely but not
impossible. I see two ways to fix the problem: (1) check if there's an entry for
the given time, if yes, 'pad' the current time value by one until a unique value
is found; (2) use a List to store objects containing the connection with its
respective add time

Oleg

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