Re: Fw: sendpkt: Connection refused
Jamie Lokier (email@example.com)
Thu, 15 Oct 1998 14:36:57 +0100
On Wed, Oct 14, 1998 at 12:16:19PM +0200, Andi Kleen wrote:
> > Setting IP_RECVERR and select()ing for recvmsg(MSG_ERRQUEUE) would
> > be a much cleaner solution, wouldn't break older apps without
> > error handling, and could still conform to RFC1122.
> That isn't possible with select (because the exceptfd fd_set is not for
> errors but for exceptional events like urgent data), but you can do it
> with poll() by waiting for POLLERR.
Note, in RFC1122 the same upcall is suggested for notification of urgent
data as for reporting ICMP errors to the application layer.
So perhaps it is reasonable to set exceptfd in this case.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/