Re: [Patch][RFC] epoll and half closed TCP connections

Eric Varsanyi (e0206@foo21.com)
Sat, 12 Jul 2003 20:05:47 -0500


> > read(), returns 0 right away socket buffer is empty
>
> read will return -1 with errno=EAGAIN in that case, not zero.

Yes, my mistake. So the real issue (of the patch) is just the original
thing I posted about: you can't tell w/o another read() syscall if an
EOF has piggybacked in on an EPOLLIN event.

Thanks for being patient.

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