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

From: Martijn Sipkema
Date: Thu Oct 07 2004 - 04:41:05 EST


From: "Adam Heath" <doogie@xxxxxxxxxx>
Sent: Thursday, October 07, 2004 09:28
> On Thu, 7 Oct 2004, bert hubert wrote:
>
> > On Wed, Oct 06, 2004 at 09:50:10PM -0700, Dan Kegel wrote:
> >
> > > It would be nice to know how other operating systems behave
> > > when receiving UDP packets with bad checksums. Can someone
> > > try BSD and Solaris?
> >
> > It does not matter - this behaviour should not be depended upon. There are
> > lots of other reasons why a packet might in fact not be available, kernels
> > are allowed to drop UDP packets at will.
>
> I've been lurking and reading this thread with great interest. I had been
> leaning towards thinking the kernel was wrong, until I read this email.
>
> This is a very excellent point.

No, it isn't. If the kernel drops a UDP packet, select() should not return
indicating available data.


--ms

-
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/