Skip to main content

Product: OpenFusion JacORB

Version: All

 

Description:

When the network connection is broken the sockets are not being removed.

 

Resolution:

It is not possible to 'automatically' detect a broken TCP connection (due to the nature of TCP). This is why you do not see an exception when a request is sent and the sockets are not closed. In order to detect network connection failures you can configure the keep-alive option within JacORB which will send a 'ping' on the network connection. The timing of this depends on the operating system.

To set the keep-alive option you will need to turn on and un-comment the following properties in the jacorb.properties file:

# Sets keep-alive on server sockets. If the OS keepalive detects a TCP/IP

# connection to be broken, the effect is the same as if the TCP/IP connection

# has been closed gracefully.

#jacorb.connection.server.keepalive=off

# Sets keep-alive on client sockets. If the OS keepalive detects a TCP/IP

# connection to be broken, the effect is the same as if the TCP/IP connection

# has been closed gracefully. All pending replies will receive a COMM_FAILURE.

#jacorb.connection.client.keepalive=off

These are off by default.

This functionality is available in JacORB 2.1.3.1 and higher.


#OpenFusion
#KnowledgeDocs