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

Chris Friesen
2004-10-06T20:27:08Z

David S. Miller wrote:
> On Wed, 06 Oct 2004 13:54:46 -0600
> Chris Friesen <cfriesen@nortelnetworks.com> 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