Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion poll: is ECONNRESET an EOF?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rob Warnock  
View profile  
 More options Apr 12 2011, 11:17 pm
Newsgroups: comp.lang.lisp
From: r...@rpw3.org (Rob Warnock)
Date: Tue, 12 Apr 2011 22:17:00 -0500
Subject: Re: poll: is ECONNRESET an EOF?
I already agreed in a parallel reply that IMHO ECONNRESET is not
an END-OF-FILE, but would like to quibble a bit about lesser points:  ;-}

Pascal J. Bourguignon <p...@informatimago.com> wrote:
+---------------
| It is not an END-OF-FILE, because END-OF-FILE occurs when you are
| reading, but ECONNRESET occurs when you are writing.  It would be more
| like a OUT-OF-SPACE-IN-FILESYSTEM error, if there was one such.
+---------------

AFAIK, ECONNRESET doesn't *only* occur when you are writing.
It should be equally possible while reading as well.

IME, the most frequent error while *writing* to the net is EPIPE[1],
which is *very* commonly seen by web servers when the client browser
closes the connection before the full response has been sent. [This
happens *very* often on slow or high-delay connections when users
hit "Stop" or click on another link before the first page finishes
downloading.]

Finally, OUT-OF-SPACE-IN-FILESYSTEM errors generally give ENOSPC
(Linux, BSDs, other Unixes) or, if due to administrative limits,
EFBIG (Linux/BSD/Unix) or EDQUOT(FreeBSD).

The semantics of ECONNRESET feel more like plain ol' EIO to me.

[By the way, note that FreeBSD distinguishes ENETRESET, ECONNABORTED,
and ECONNRESET, as well as several other errors than can happen
mid-connection, e.g., ENETDOWN, ENETUNREACH, EHOSTDOWN, EHOSTUNREACH,
ETIMEDOUT, etc.]

-Rob

[1] Which, on Unix/Linux systems, if not ignored/caught, causes SIGPIPE! ;-}
    Thanks again to Dan Barlow, who once suggested simply *ignoring*
    SIGPIPE in CL-based web servers, and instead catching STREAM-ERROR
    on writes and silently ignoring it if caused by EPIPE [but logging
    other STREAM-ERRORs, of course].

-----
Rob Warnock             <r...@rpw3.org>
627 26th Avenue         <http://rpw3.org/>
San Mateo, CA 94403


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.