Re: POLLRDONCE optimisation for epoll users (was: epoll and half closed TCP connections)

Jamie Lokier (jamie@shareable.org)
Mon, 14 Jul 2003 04:27:27 +0100


Davide Libenzi wrote:
> And the name READONCE seems to imply that you can't read(2) twice.

Like all POLL* flags, you can always do more than it implies and get EAGAIN :)

I don't care about the name, feel free to pick another.

> I'd rather prefer the RDHUP flag that tells me : There's an hungup
> condition for sure, and you might also find some data since POLLIN is set.

Yeah, but it doesn't stop the do-while loop from being broken :)

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