home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!mixcom.com!mgic
- From: mgic@mixcom.mixcom.com (mgic)
- Newsgroups: comp.protocols.tcp-ip
- Subject: server that won't die (normally)
- Message-ID: <1992Sep01.205851.29040@mixcom.com>
- Date: 1 Sep 92 20:58:51 GMT
- Article-I.D.: mixcom.1992Sep01.205851.29040
- Sender: rrvvrr@mixcom.com (MGIC Investment Corp.)
- Distribution: usa
- Organization: Milwaukee Internet Xchange BBS, Milwaukee, WI U.S.A.
- Lines: 22
-
-
- System: RS/6000 AIX 3.2.1
-
- I've written a server that is started by inetd, reading
- and writing stdin and stdout.
-
- The server uses select() to determine when data is
- ready to be read. If an (socket) error is detected,
- the server quits.
-
- The problem is that the server never dies if the client
- quits abnormally. When the client quits normally, it sends
- the server an "end of session" message, and the server quits normally.
-
- Why isn't the server being informed that the client no longer exists
- so that select() will report an error? Or, what method should
- be used to determine if the stream no longer exists?
-
- Thank you.
-
- Dean
- --
-