Threads not killed during disconnection
"Eric RENIER" <[email protected]> Tue, 2 Jul 2002 13:14:58 +0200
| Newsgroups | gmane.comp.lib.jtc |
|---|---|
| Message-ID | <[email protected]> |
C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0146_01C221CA.77671570 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I work with ORBACUS 3.3.2 and JTC 1.0.12 packages under Linux mandrake = 7.2 I have a big problem with my CORBA application. In fact, I have a CORBA server running under Linux on computer A. My = server is running with conModel threaded. I start a client (applet JAVA) from another computer B. CORBA server = register the connection, a closeCB and return a callback to the client. On side server, I have = two new threads creating for this connection (receivethread and = senderthread of GIOPServerWorkerThread) and I save the = OCI_Transport_Info variable. I simulate a crash or a interrupted network liaison by disconnecting = network cable on computer A. I kill client and reconnect network cable on computer A. I start another client on computer C. During this new connection, I = check all availabe connections on server side by creating a = OB_policy_timeout on callback and calling _non_existent API on it. I = received a corba exception CORBA_COMM_FAILURE. In this case, I release the = callback by calling remove_close_cb with the OCI_Transport_Info saving = before. I observe that the two threads (receivethread and senderthread of = GIOPServerWorkerThread) are not killed. How can I do to killing these threads in side server and cleaning = properly this connection that doesn't exist following a network problem = ? Thank regards for your answer. e-mail : [email protected] ------=_NextPart_000_0146_01C221CA.77671570 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#c1ccd9> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>I work with ORBACUS 3.3.2 and JTC = 1.0.12 packages=20 under Linux mandrake 7.2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I have a big problem with my CORBA=20 application.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>In fact, I have a CORBA server running = under Linux=20 on computer A. My server is running with conModel = threaded.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I start a client (applet JAVA) from = another=20 computer B. CORBA server register the connection,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>a closeCB and </FONT><FONT = face=3DArial=20 size=3D2>return a callback to the client. On side server, I have two new = threads=20 creating for this connection (receivethread and senderthread of=20 GIOPServerWorkerThread) and I save the OCI_Transport_Info = variable.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I simulate a crash or a interrupted = network liaison=20 by disconnecting network cable on computer A.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I kill client and reconnect network = cable on=20 computer A.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I start another client on computer C. = During this=20 new connection, I check all availabe connections on server side by = creating a=20 OB_policy_timeout on callback and calling _non_existent API on it. I=20 received</FONT></DIV> <DIV><FONT face=3DArial size=3D2>a corba exception CORBA_COMM_FAILURE. = In this=20 case, I release the callback by calling remove_close_cb with the=20 OCI_Transport_Info saving before.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I observe that the two threads = (receivethread and=20 senderthread of GIOPServerWorkerThread) are not killed.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>How can I do to killing these threads = in side=20 server and cleaning properly this connection that doesn't exist = following a=20 network problem ?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thank regards for your = answer.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>e-mail : <A=20 href=3D"mailto:[email protected]">[email protected]</A>= </FONT></DIV> <DIV><FONT face=3DArial = size=3D2></FONT> </DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_0146_01C221CA.77671570-- _______________________________________________ JTC-Users Mailing List - [email protected] http://www.orbacus.com/mailman/listinfo/jtc-users Visit our support FAQ before you send a message. http://www.orbacus.com/faq/support.html