c++client-servercorbatao

Tao Client robustness on server down


Context: In a server-client setup (using ace-tao).

Problem Statement: The server might be down, while the client is up and attempting to make API calls. Now to make the client setup more robust, I want to make the client to be able to know about the server-down-state, and when server is up again, it can attempt the rebind and get the new ORB ready, for any further API calls.

Any suggestions?


Solution

  • There is only one solution in case of TCP/IP. You must implement so-called heatbeat connection : simple echo connection and analyze the return code of read-write calls. There is no callback in TCP/IP for connection state : alive or dead.