Re: UDP recvmsg blocks after select(), 2.6 bug?

From: Chris Friesen
Date: Wed Oct 06 2004 - 17:11:34 EST


David S. Miller wrote:
On Wed, 06 Oct 2004 13:54:46 -0600
Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx> wrote:


Would it be so bad to do the checksum before marking the socket readable?


Yes, because if we do that we have to make two passes over the
data instead of one. It does make a big difference.

Hmm...no easy solution then.

In any case, the current behaviour is not compliant with the POSIX text that Andries posted. Perhaps this should be documented somewhere?

Alternately, how about having the recvmsg() call return a zero, and (if appropriate) the length of the name set to zero? This appears to comply with the man page for recvmsg().

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