This content has been marked as final.
Show 3 replies
-
1. Re: JBMESSAGING-432 - Connection Leaking on Factory (1 conne
clebert.suconic Sep 18, 2006 2:36 PM (in response to clebert.suconic)I'm removing the comment from ClientConnectionFactoryDelegate to fix this.
if (remotingConnection == null) { //Not a call to createConnectionDelegate - disconnect the client client.disconnect(); }
I"m not sure why we are using a separate client here thought. (maybe because it's hard to access properties from the client in a different layer). It would take a lot of work to change this. (to not have to open a new client here).
I will just disconnect the client, since it's created every time. (So, the leak it's a little bigger. (It's still a minor issue though). -
2. Re: JBMESSAGING-432 - Connection Leaking on Factory (1 conne
ovidiu.feodorov Sep 18, 2006 3:17 PM (in response to clebert.suconic)Not disconnecting the client there was done on purpose, read the initial comment on http://jira.jboss.com/jira/browse/JBMESSAGING-432
-
3. Re: JBMESSAGING-432 - Connection Leaking on Factory (1 conne
clebert.suconic Sep 18, 2006 4:32 PM (in response to clebert.suconic)Sorry, I forgot that Remoting/Locator would have a cache for this socket.
Client will be GCED byt the underlying socket will sit somewhere in a static HashMap inside remoting. (the Locator property will be used for that).
A proper fix would be to have client created before, and always reuse the same client.
But that would change internal API. I don't think we should do it now.
I guess we should mark this as Won't fix.