home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / protocol / tcpip / 4259 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.1 KB

  1. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!mixcom.com!mgic
  2. From: mgic@mixcom.mixcom.com (mgic)
  3. Newsgroups: comp.protocols.tcp-ip
  4. Subject: server that won't die (normally)
  5. Message-ID: <1992Sep01.205851.29040@mixcom.com>
  6. Date: 1 Sep 92 20:58:51 GMT
  7. Article-I.D.: mixcom.1992Sep01.205851.29040
  8. Sender: rrvvrr@mixcom.com (MGIC Investment Corp.)
  9. Distribution: usa
  10. Organization: Milwaukee Internet Xchange BBS, Milwaukee, WI U.S.A.
  11. Lines: 22
  12.  
  13.  
  14. System: RS/6000 AIX 3.2.1
  15.  
  16. I've written a server that is started by inetd, reading
  17. and writing stdin and stdout.
  18.  
  19. The server uses select() to determine when data is
  20. ready to be read. If an (socket) error is detected, 
  21. the server quits.
  22.  
  23. The problem is that the server never dies if the client
  24. quits abnormally. When the client quits normally, it sends
  25. the server an "end of session" message, and the server quits normally.
  26.  
  27. Why isn't the server being informed that the client no longer exists
  28. so that select() will report an error? Or, what method should
  29. be used to determine if the stream no longer exists?
  30.  
  31. Thank you.
  32.  
  33. Dean
  34. -- 
  35.