How should the "correct error handling" look like?
I got the same problem when building a daemon which talks to
a large number of clients. The problem: You don't know, whether
the error return of the send is for the current packet or for
one of the thousand packets before. If you try to resend the
current packet another icmp-error may have returned in the
meantime and you get just another -1.
You may try to resend until you get a success but what, if the
error _is_ for the current packet and not for an earlier one?
IMO, this interface is broken. I came to the solution, that
SO_BSDCOMPAT is the Right Thing and should be the default!
(I don't know, if this would break some 'standard'...)
Ciao, ET.
Don't try to handle something you don't know how to handle.
-
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/