Commit cafd2600 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Do not signal read/write bits if there are read/write asyncs waiting.

This is validated by tests introduced in 59beffb4 etc. This commit alone doesn't fix said tests, because: * on this poll, we will alert the waiting async; * when reselecting, we will still request POLLIN, because the AFD_POLL_READ request is still active, * when POLLIN is subsequently signaled, we do not remove it in sock_dispatch_asyncs(), because we check async_waiting(), not async_queued(). Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 808d4a77
......@@ -1179,10 +1179,9 @@ static void sock_poll_event( struct fd *fd, int event )
break;
}
complete_async_polls( sock, event, error );
event = sock_dispatch_asyncs( sock, event, error );
sock_dispatch_events( sock, prevstate, event, error );
complete_async_polls( sock, event, error );
sock_reselect( sock );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment