home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14257 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

  1. From: mintz@hpindda.cup.hp.com (Ken Mintz)
  2. Date: Fri, 18 Dec 1992 19:48:29 GMT
  3. Subject: Re: HP-UX 8.07 bug causes crash (& related info on SO_LINGER)
  4. Message-ID: <4310330@hpindda.cup.hp.com>
  5. Organization: HP Information Networks, Cupertino, CA
  6. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!tulane!spool.mu.edu!sdd.hp.com!col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hpcss01!hpindda!mintz
  7. Newsgroups: comp.sys.hp
  8. References: <1992Dec17.233412.28542@icaen.uiowa.edu>
  9. Lines: 28
  10.  
  11. > BTW, this is unrelated, but SO_LINGER doesn't work as the man pages claim it
  12. > does (but then neither does the BSD networking code on which HP-UX's is based)
  13.  
  14.   socket.h and I believe the man pages were cleaned up for 9.0 to try to
  15.   correctly reflect the operation of SO_LINGER.  I think you summarized
  16.   some or all of it correctly, but let me just reiterate.
  17.  
  18.   (BTW, SO_LINGER is defined deferently for 7.0 than for 8.0 and 9.0.  The
  19.   following is for 8.0 and 9.0.)
  20.  
  21.   If l_onoff is zero, close(2) returns immediately, but any remaining data
  22.   in the send buffer will be sent before the TCP connection is closed.
  23.  
  24.   If l_onoff is non-zero and l_linger is zero, close(2) returns immediately,
  25.   and any remaining data in the send buffer is flushed (not sent).
  26.  
  27.   If l_onoff is non-zero and l_linger is non-zero, close(2) will not return
  28.   until all remaining data in the send buffer is sent.
  29.  
  30.   Note that l_linger is __not__ a measure of time, as it is not in 4.3BSD.
  31.   4.4BSD does implement it as a measure of time, but it measures "ticks",
  32.   not seconds.
  33.  
  34. -- Ken Mintz
  35.  
  36. DISCLAIMER:  This response does not represent the official position of, or
  37. statement by, the Hewlett-Packard Company.  This response is provided for
  38. informational purposes only and is supplied without warranty of any kind. 
  39.