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]

Reply via email to