Ove Kaaven <[EMAIL PROTECTED]> writes:
> Perhaps Alexandre has an idea how best to disable polling temporarily
> rather than the permanent way set_select_events() do now.
I have been working on and off on fixing this and a few related
problems, but nothing finished yet. Your fix is basically correct, we
have to do set_select_events(-1) upon POLLERR (in fact I'll probably
have the poll loop do this automatically). And the fact that this
disables polling permanently is correct too, once you get a POLLERR
you cannot reenable polling on this fd since this will cause a
busy-loop.
The other part of the fix is to ensure that we don't rely on the
sock_poll_event callback to set the socket state once we get an
error. This probably means changing sock_reselect to directly generate
a sock_poll_event callback when the socket is in POLLERR condition.
--
Alexandre Julliard
[EMAIL PROTECTED]