home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!s5!is1.is.morgan.com!is0.is.morgan.com!chetal
- From: chetal@is.morgan.com (Pradeep Chetal)
- Subject: Re: Detecting a broken socket
- In-Reply-To: camh@nms.otca.oz.au's message of 7 Sep 92 04:15:02 GMT
- Message-ID: <CHETAL.92Sep7220458@is1.is.morgan.com>
- Sender: news@is.morgan.com
- Nntp-Posting-Host: is1
- Organization: Morgan Stanley & Company
- References: <camh.715839302@balrog>
- Date: Tue, 8 Sep 1992 03:04:58 GMT
- Lines: 35
-
- In article <camh.715839302@balrog> camh@nms.otca.oz.au (Cameron Hutchison) writes:
-
- Path: is1.is.morgan.com!s5!uunet!usc!rpi!batcomputer!munnari.oz.au!metro!otc!balrog!camh
- From: camh@nms.otca.oz.au (Cameron Hutchison)
- Newsgroups: comp.unix.programmer
- Keywords: socket, SunOS, keep_alive
- Date: 7 Sep 92 04:15:02 GMT
- Sender: news@otc.otca.oz
- Lines: 37
-
- I have a problem with a socket connection that I cant seem to find a
- solution for. I am trying to detect when the remote end of a socket dies.
- I am doing all this on Sun 4's running SunOS 4.1.2.
-
- My method of testing the keep alive timer was to have a server
- machine "emulating" the comms server (from the standpoint of a socket
- connection) and a client machine to connect to it. I then simulated
- the dropping of the connection by pulling the network connection
- to the server machine. I let the client machine run for about 45
- minutes before giving up. The client machine did not detect the
- broken connection.
-
- Regarding KEEPALIVE time interval:
-
- #define TCPTV_KEEP_IDLE (120*60*PR_SLOWHZ) /* dflt time before probing */
-
- I think it is 2 hours as per /usr/include/netinet/tcp_timer.h on our Suns.
-
- /Pradeep
- --
- ----------------------------------------------------------------------------
- Pradeep Chetal Phone: 81-3-3286-9678
- Information Services Deptartment FAX: 81-3-3286-9040
- Morgan Stanley Japan Ltd. Tokyo Branch E-mail: chetal@is.morgan.com
- Ote Center Bldg. 3F, 1-1-3 Otemachi, Chiyoda-ku, Tokyo 100
-