Re: UDP recvmsg blocks after select(), 2.6 bug?
From: Adam Heath (doogie_at_debian.org)
Date: 10/07/04
- Previous message: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- In reply to: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- Next in thread: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- Reply: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 7 Oct 2004 05:07:26 -0500 (CDT) To: Martijn Sipkema <martijn@entmoot.nl>
On Thu, 7 Oct 2004, Martijn Sipkema wrote:
> > > 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.
The kernel can drop a packet after select() returns, and before read() is
called. That's the whole point of *U*DP.
-
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/
- Previous message: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- In reply to: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- Next in thread: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- Reply: Martijn Sipkema: "Re: UDP recvmsg blocks after select(), 2.6 bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|