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

From: David S. Miller
Date: Wed Oct 06 2004 - 10:53:45 EST


On Wed, 06 Oct 2004 09:31:46 -0600
Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx> wrote:

> David S. Miller wrote:
>
> > So if select returns true, and another one of your threads
> > reads all the data from the file descriptor, what would you
> > like the behavior to be for the current thread when it calls
> > read?
>
> What about the single-threaded case?

Incorrect UDP checksums could cause the read data to
be discarded. We do the copy into userspace and checksum
computation in parallel. This is totally legal and we've
been doing it since 2.4.x first got released.

Use non-blocking sockets with select()/poll() and be happy.
-
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/