Nicolas,<br><br>What version of omniORB and what platform is the server running on?<br><br>I have had problems in the past on an omniORB server on the OpenVMS platform where the server will quit accepting incoming connections. The problem was in src/lib/omniORB/orbcore/SocketCollection.cc. I found that either poll or select (you can configure the platform to use either) was indicating an error (negative value returned) but the errno value was other than EBADF. In the case of OpenVMS, errno was EVMSERR which indicates a platform specific error condition that is indicated in vaxc$errno. It turns out this value was 316 which is "%SYSTEM-F-IVCHAN, invalid I/O channel". I patched SocketCollection.cc to treat this condition the same as EBADF and after that I found that the server would recover from this.<br>
<br>I will say that prior to modifying this source file that the server was a little too quiet about what was going wrong here. I don't remember what trace level was required to see what was going wrong here but I think it should display *something* in this case unless traceLevel indicates that output from the server is strictly forbidden. In that case it might be better if the server would just crash. A server that isn't listening isn't good for very much, IMHO.<br>
<br>Bruce<br><br><div class="gmail_quote">2010/9/2 VEYSSIERE Nicolas <span dir="ltr"><<a href="mailto:nicolas.veyssiere@thalesgroup.com">nicolas.veyssiere@thalesgroup.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
here is the init trace log of my software using omniORB (without a naming service) :<br>
<br>
omniORB: (0) 2010-08-31 13:59:38.992559: Initialising incoming endpoints.<br>
omniORB: (0) 2010-08-31 13:59:38.992598: Instantiate endpoint 'giop:tcp::1234'<br>
omniORB: (0) 2010-08-31 13:59:38.992735: Bind to address :: port 1234.<br>
omniORB: (0) 2010-08-31 13:59:38.992867: Publish specification: 'addr'<br>
omniORB: (0) 2010-08-31 13:59:38.992905: Try to publish 'addr' for endpoint giop:tcp:<a href="http://192.9.10.213:1234" target="_blank">192.9.10.213:1234</a><br>
omniORB: (0) 2010-08-31 13:59:38.992929: Publish endpoint 'giop:tcp:<a href="http://192.9.10.213:1234" target="_blank">192.9.10.213:1234</a>'<br>
omniORB: (0) 2010-08-31 13:59:38.993058: Starting serving incoming endpoints.<br>
omniORB: (0) 2010-08-31 13:59:38.994207: Adding key<ciorAdmin> (activating) to object table.<br>
omniORB: (0) 2010-08-31 13:59:38.994241: State key<ciorAdmin> (activating) -> active<br>
omniORB: (0) 2010-08-31 13:59:38.994400: Creating ref to local: key<ciorAdmin><br>
target id : IDL:CLA/CIORAdmin:1.0<br>
most derived id: IDL:CLA/CIORAdmin:1.0<br>
omniORB: (1) 2010-08-31 13:59:38.996625: AsyncInvoker: thread id = 1 has started. Total threads = 1<br>
omniORB: (1) 2010-08-31 13:59:38.996647: giopRendezvouser task execute for giop:tcp:<a href="http://192.9.10.213:1234" target="_blank">192.9.10.213:1234</a><br>
omniORB: (1) 2010-08-31 13:59:39.430031: SocketCollection idle. Sleeping.<br>
<br>
<br>
The ORB is waiting on port '1234', with a client sometimes I have the following error :<br>
<br>
<br>
omniORB: (0) 2010-09-02 12:42:31.140468: Invoke 'notificationImagerie' on remote: key<............................RootPOA..............><br>
omniORB: (0) 2010-09-02 12:42:31.140509: sendChunk: to giop:tcp:<a href="http://191.0.248.53:2501" target="_blank">191.0.248.53:2501</a> 573 bytes<br>
omniORB: (0) 2010-09-02 12:42:31.140528: 128 bytes out of 573<br>
4749 4f50 0102 0000 0000 0231 0000 189e GIOP.......1....<br>
0000 0000 0000 0008 0000 0031 afab cb00 ...........1....<br>
0000 0020 d1d4 a95f 0000 0001 0000 0000 ... ..._........<br>
0000 0001 0000 0008 526f 6f74 504f 4100 ........RootPOA.<br>
0000 0008 0000 0001 0000 0000 1400 0002 ................<br>
0000 0015 6e6f 7469 6669 6361 7469 6f6e ....notification<br>
496d 6167 6572 6965 0000 000a 0000 0000 Imagerie........<br>
0000 0010 0000 0015 0000 0118 0000 0000 ................<br>
omniORB: (0) 2010-09-02 12:42:31.140594: Error in network send: giop:tcp:<a href="http://191.0.248.53:2501" target="_blank">191.0.248.53:2501</a><br>
omniORB: (0) 2010-09-02 12:42:31.140611: throw giopStream::CommFailure from giopStream.cc:1186(1,NO,COMM_FAILURE_MarshalArguments)<br>
omniORB: (0) 2010-09-02 12:42:31.140833: Client connection refcount = 0<br>
omniORB: (0) 2010-09-02 12:42:31.140851: Client close connection to giop:tcp:<a href="http://191.0.248.53:2501" target="_blank">191.0.248.53:2501</a><br>
omniORB: (0) 2010-09-02 12:42:31.140925: Invoke 'notificationImagerie' on remote: key<............................RootPOA..............><br>
omniORB: (0) 2010-09-02 12:42:31.140960: Send codeset service context: (ISO-8859-1,UTF-16)<br>
omniORB: (0) 2010-09-02 12:42:31.141000: Client attempt to connect to giop:tcp:<a href="http://191.0.248.53:2501" target="_blank">191.0.248.53:2501</a><br>
omniORB: (0) 2010-09-02 12:42:31.141597: Failed to connect (no peer name): 191.0.248.53<br>
omniORB: (0) 2010-09-02 12:42:31.141641: Switch rope to use address giop:tcp:<a href="http://191.0.248.53:2501" target="_blank">191.0.248.53:2501</a><br>
omniORB: (0) 2010-09-02 12:42:31.141657: Unable to open new connection: giop:tcp:<a href="http://191.0.248.53:2501" target="_blank">191.0.248.53:2501</a><br>
omniORB: (0) 2010-09-02 12:42:31.141673: throw giopStream::CommFailure from giopStream.cc:1152(0,NO,TRANSIENT_ConnectFailed)<br>
omniORB: (0) 2010-09-02 12:42:31.141794: throw TRANSIENT from omniObjRef.cc:813 (NO,TRANSIENT_ConnectFailed)<br>
omniORB: (0) 2010-09-02 12:42:31.142267: omniRemoteIdentity deleted.<br>
omniORB: (0) 2010-09-02 12:42:31.142289: ObjRef(IDL:CLA/Client:1.0) -- deleted.<br>
<br>
<br>
A network error happened between the server and the client (in my point of view).<br>
<br>
But there is a problem : the ORB stop listening on port '1234', I and don't know why, I can't reconnect to this server.<br>
<br>
<br>
Can some one helps me to find what happens here ?<br>
<br>
<br>
Thanks.<br>
<br>
Regards,<br><font color="#888888">
-- <br>
Nicolas V.<br>
</font><br>_______________________________________________<br>
omniORB-list mailing list<br>
<a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br>
<a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" target="_blank">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br>
<br></blockquote></div><br>