Re: Knowing that the other peer has died.

Jonas Borgström <[email protected]> 06 Mar 2003 23:34:44 +0100
Newsgroups gmane.network.beep.roadrunner.general
Organization CodeFactory AB
Message-ID <1046990084.5275.43.camel@blinky>
On Thu, 2003-03-06 at 10:29, Francis Brosnan Blázquez wrote:
> Hi.
> 
> We are developing an architecture which is composed of serveral servers
> and clients. Sometimes, a server can be a client for another server.
> 
> In this context, we have the following problem. When a client or a
> server dies (due to recieved signals such as SIGSEGV X'D) our servers
> must know when it happens to take properly actions. I mean, to catch
> broken pipe signal on the server.
> 
> How could we do this with roadrunner ?

Hi Francis,

When a RoadRunner connection is shut down (for any reason) All open
channels are closed and the "close_confirmation" function is called
for all active channels. It is probably there you should perform
your actions.

rr_channel_send_message will also return FALSE if the connection is 
disconnected.

/ Jonas
-- 
Jonas Borgström                  [email protected]
CodeFactory AB                   http://www.codefactory.se/
Office: +46 (0)90 71 86 14