home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / programm / 4560 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.0 KB  |  49 lines

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