Bugtraq mailing list archives

Re: Sendmail, lynx, Netscape, sshd, Linux kernel (twice)


From: wietse () PORCUPINE ORG (Wietse Venema)
Date: Mon, 9 Nov 1998 14:05:42 -0500


With regard to LINUX accept() returning benign error results other
than the usual suspects (EAGAIN or EINTR), Todor Tuparov asked:

Is there a solution?
Very simple question.

I understand that with LINUX 2.1.x the accept() call will not wake
up before the TCP three-way handshake is complete.

But for now, it is up to the programmer to deal with benign error
returns such as: ECONNREFUSED, ECONNRESET, EHOSTDOWN, EHOSTUNREACH,
ENETDOWN, ENETUNREACH, ENOTCONN, and to treat them just like EAGAIN.

        Wietse



Current thread: