home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.tcp-ip
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!news.columbia.edu!cunixb.cc.columbia.edu!ae2
- From: ae2@cunixb.cc.columbia.edu (Amiran Eliashvili)
- Subject: Re: FTP client source
- Message-ID: <1992Nov7.041430.13109@news.columbia.edu>
- Sender: usenet@news.columbia.edu (The Network News)
- Nntp-Posting-Host: cunixb.cc.columbia.edu
- Reply-To: ae2@cunixb.cc.columbia.edu (Amiran Eliashvili)
- Organization: Columbia University
- References: <1992Oct26.171556.625@mr.med.ge.com> <1992Oct30.111355.27732@andersen.co.uk>
- Date: Sat, 7 Nov 1992 04:14:30 GMT
- Lines: 35
-
-
- Hi all:
-
- I have a rather specific question that have been intriguing me for
- few days now. I am trying to implement a fault tolerant system based
- on the Client/Server model. The nature of the system is to detect if
- either ends has been terminated. If it has been terminated abnormally
- the system will react accordingly.
-
- I am using BSD sockets in order to establish a link between the server
- and the client, using SOCK_STREAM (TCP) as my protocol. I am able to
- detect when the other side has been terminated by a SIGKILL, SIGQUIT,
- as writing to the socket on the other side sends a SIGPIPE. Yet, when
- the machine has been turned off manually I don't get anything even
- though I have tried setting setsockopt(SO_KEEPALIVE)
-
- [Man page exerb ]
-
- SO_KEEPALIVE enables the periodic transmission of messages on a
- connected socket. Should the connected party fail to respond to
- these messages, the con- nection is considered broken. A process
- attempting to write to the socket receives a SIGPIPE signal and
- the write opera- tion returns an error. By default, a process
- exits when it receives SIGPIPE. A read operation on the socket
- returns an error but does not generate SIGPIPE.
-
-
- to setsockopt(SO_LINGER) but none has worked for me. I was wondering
- if anyone else has encountered in the problem. If so how did you
- overcome it?
-
- Any ideas or suggestions would be much appreciated.
-
- Please mail to : ae2@cunixa.cc.columbia.edu
- Thanks
-