On Thu, 16 Mar 2000, Alex Korobka wrote:

>   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. select() returns the socket as readable and only after read()
>   returns 0 bytes read you can be sure the socket is closed and buffers
>   are empty. Alternatively, there is an ioctl( fd, FIONREAD, ... ) call
>   that I used in the previous winsock implementation.

I just assumed Alexandre knew what he was doing when he apparently removed
that ioctl(FIONREAD) check from my original READ_EVENT handling code when
he changed the wineserver from using select() to using poll() over two
months ago. Was that a mistake, you think?

Reply via email to