On 17 Mar 2000, Alexandre Julliard wrote:
> Alex Korobka <[EMAIL PROTECTED]> writes:
>
> > The problem is that in order to post FD_CLOSE we need to know that there
> > is no more incoming data. I'm not quite sure how poll() reports this
> > condition.
>
> POLLHUP will tell you that the socket has been closed, and POLLIN will
> tell you whether there still is data. So what we can do is to ignore
> POLLHUP as long as we have POLLIN (but we still have to remove the
> socket from the poll loop on POLLHUP of course).
>
> --
> Alexandre Julliard
> [EMAIL PROTECTED]
>
OK. Makes sense. Still, I'd rather avoid checking all sockets explicitly
in the sock_reselect(). This will result in duplicate notifications for
sockets which are still in the server poll fd set.
Alex