Messages in this thread | | | Date | Wed, 06 Oct 2004 14:18:23 -0600 | From | Chris Friesen <> | Subject | Re: UDP recvmsg blocks after select(), 2.6 bug? |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |