RE :RE :Re: JacORB 3.6.1 : Client closing

Nicolas Aguilé <[email protected]> Mon, 29 Jun 2015 15:30:24 +0200 (CEST)
Newsgroups gmane.comp.corba.jacorb.devel
Message-ID <1708543854.46980.1435584624952.JavaMail.www@wwinf1v19>
_release() is not call in the client when client finishes.
I've seen the chapter 3.2.13 in the JacORB Developper Guide
Does it meen that if the call to _release() is forgotten, no process does the job &nbsp;?

Nicolas

----- message d'origine -----
De : "Nicolas Aguilé" &lt;[email protected]&gt;
date lun. 29/06/2015 11:47 (GMT +02:00)
À : "Nick Cross" &lt;[email protected]&gt;
Objet : RE :Re: [jacorb-developer] JacORB 3.6.1 : Client closing

It was in JacORB 3.6 not 3.6.1 as mentionned in the mail object.
concerning the call to _release() i'm not sure.I ask to the developpers in charge of the client code.
Thanks

----- message d'origine -----
De : "Nick Cross" &lt;[email protected]&gt;
date lun. 29/06/2015 11:39 (GMT +02:00)
À : "Nicolas Aguilé" &lt;[email protected]&gt;, "Discussions concerning CORBA development with JacORB" &lt;[email protected]&gt;
Cc : "Nicolas Aguilé" &lt;[email protected]&gt;
Objet : Re: [jacorb-developer] JacORB 3.6.1 : Client closing

Hi,

Can you confirm the version you are using please?

When your client finishes with the CORBA Objwebect do you call _release ?

Thanks

Nick


Clients should disconnect automatically now after a system exceo

On 29/06/15 09:44, Nicolas Aguilé wrote:
&gt; Hi,
&gt; After update, we have had a suspect behavior (one shot) after a network cut : one client has never recover the connection&amp;nbsp;(related to BZ967 ????)&amp;nbsp;and the following message appears in our log file :
&gt; 2015-06-25 06:36:43,423 DEBUG [sicops-LFMY-export-2] (ClientConnectionManager.java:179) - ClientConnectionManager: cannot release ClientGIOPConnection to nco4-1-salon-diff.ba701.nco4-1.nco4.air.defense:14300 (562e6f02) (still has&amp;nbsp;48639&amp;nbsp;client(s))2015-06-25 06:36:43,424 DEBUG [sicops-LFMY-export-2] (Delegate.java:2188) - Delegate released!2015-06-25 06:36:43,425&amp;nbsp; INFO [sicops-LFMY-export-2] (ClientConnectionManager.java:148) - ClientConnectionManager: found ClientGIOPConnection to nco4-1-salon-diff.ba701.nco4-1.nco4.air.defense:14300 (562e6f02)
&gt;
&gt; What surprising us is the number of clients (48639) still using the GIOP connection.Regarding this, we have a look on the code and we have a question :
&gt;
&gt; If the property&amp;nbsp;disconnect_after_systemexception is not set (NOT OUR CASE) the disconnect method in the Delegate returns before releasing the connection (seems to be normal regarding de property description) but is there any risk to keep Client affected to Connection and have a memory leak ?
&gt;
&gt;
&gt; &amp;nbsp; &amp;nbsp; private void disconnect(ClientConnection connectionInUse)&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (connectionInUse == null)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!disconnectAfterNonRecoverableSystemException)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; synchronized(bind_sync)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (connections[currentConnection.ordinal ()] == null)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (connections[currentConnection.ordinal ()] != connectionInUse)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.debug("release the connection");
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conn_mg.releaseConnection( connections[currentConnection.ordinal ()] );&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connections[currentConnection.ordinal ()] = null;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bound = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp; &amp;nbsp; }
&gt; Thanks
&gt; Nicolas
&gt; _______________________________________________
&gt; jacorb-developer maillist  -  [email protected]
&gt; https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
&gt;

_______________________________________________
jacorb-developer maillist  -  [email protected]
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer