[Spread-users] disconnect failure

Serge Aleynikov serge at hq.idt.net
Fri Mar 25 16:34:55 EST 2005


Hi,

I have a question regarding implementation of SP_disconnect.

If a client program connects to a spread daemon (server), and the server 
dies, the client is not aware of the death of the server.  If the client 
process issues SP_disconnect, the client is getting a SIGPIPE signal and 
dies, which is not nice.

I think it would be more intuitive to have in the
SP_disconnect's internal call to SP_internal_multicast make sure that 
the send()'s call is setting the MSG_NOSIGNAL flag, so that the caller 
of SP_disconnect would get a valid return code instead of it getting killed.

Thoughts?

Serge




More information about the Spread-users mailing list