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=26139>.
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=26139

Memory leak in MultiThreadedHttpClient caused by bad .equals()





------- Additional Comments From [EMAIL PROTECTED]  2004-01-14 19:29 -------
Hi Jesse,

If the ProtocolSocketFactory does not implement equals, the object identity is used.  
In most cases 
this has worked, since the socket factories are usually singletons.  After looking at 
the code 
though, it is possible that more than one instance of DefaultProtocolSocketFactory and 
SSLProtocolSocketFactory could be created.  It seems that we have a couple of options 
here to fix 
this:

 - change Protocol to not rely on ProtocolSocketFactory.equals().
 - add equals methods to the socket factories
 - ensure that the socket factories are singletons

My preference is to do #2&3.  What do others think?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to