home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:3996 comp.unix.questions:9540
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!news
- From: urlichs@smurf.sub.org (Matthias Urlichs)
- Newsgroups: comp.unix.programmer,comp.unix.questions
- Subject: Re: help with "connection reset by peer" error.
- Date: 28 Jul 1992 23:25:47 +0200
- Organization: University of Karlsruhe, FRG
- Lines: 24
- Message-ID: <154e0rINNr5l@smurf.smurf.sub.org>
- References: <1992Jul8.161635.405@CSD-NewsHost.Stanford.EDU>
- NNTP-Posting-Host: 127.0.0.1
-
- In comp.unix.programmer, article <1992Jul8.161635.405@CSD-NewsHost.Stanford.EDU>,
- vahe@sparcy.Stanford.EDU (Vahe Avedissian) writes:
- < I am running a small program that communicates over
- < the network via sockets. This is using a very simple
- < server / client model. Every once in a while (i.e.
- < maybe once in a week) I get the network read error
- < "Connection reset by peer" which naturally terminates
- < the application.
- <
- Why "naturally"? If/when read() returns an error, the program doesn't die
- unless you make it so (via exit()).
-
- Which application dies -- the client or the server? What's happening on the
- other side?
-
- This error means that the connection got out of sync and the other end has
- reset it. via an appropriate TCP packet. Common cause: Somebody has rebooted
- the other side without shutting it down properly.
-
- --
- Save the whales. Collect the whole set.
- --
- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\
- Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany -- +49-721-9612521 \o)/
-