Re: write() returning EAGAIN

Andreas Kleen (ak@muc.de)
Fri, 20 Nov 1998 21:08:32 +0100


On Fri, Nov 20, 1998 at 08:34:42PM +0100, kuznet@ms2.inr.ac.ru wrote:
> Hello!
>
> > I've seen it since early 2.1.x (Maybe since the select->poll migration??)
> > It is probably some difference in poll/select handling, but I haven't tracked
> > it down yet.
>
> Seems, it is another case, when we forget to set shutdown mask
> on socket death.

Culprit found: tcp_rcv_state_process:SYN_SENT:if (!syn) ...

The check is bogus anyways, just replacing the ECONNRESET code with
"goto discard" seems to fix it (and it is needed to comunicate with broken
servers like the mozilla.org cvs server)

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/