server: Send AFD_POLL_READ messages before AFD_POLL_WRITE.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-05-03 17:56:26 -05:00 committed by Alexandre Julliard
parent 934023d15e
commit ad078be430
2 changed files with 2 additions and 2 deletions

View File

@ -5896,7 +5896,7 @@ static void test_read_events(struct event_test_ctx *ctx)
check_events(ctx, 0, 0, 0);
select_events(ctx, server, FD_ACCEPT | FD_CONNECT | FD_OOB | FD_READ | FD_WRITE);
check_events_todo(ctx, FD_READ, FD_WRITE, 200);
check_events_todo_event(ctx, FD_READ, FD_WRITE, 200);
check_events(ctx, 0, 0, 0);
ret = sync_recv(server, buffer, 5, 0);

View File

@ -505,8 +505,8 @@ static const enum afd_poll_bit event_bitorder[] =
AFD_POLL_BIT_CONNECT_ERR,
AFD_POLL_BIT_ACCEPT,
AFD_POLL_BIT_OOB,
AFD_POLL_BIT_WRITE,
AFD_POLL_BIT_READ,
AFD_POLL_BIT_WRITE,
AFD_POLL_BIT_RESET,
AFD_POLL_BIT_HUP,
AFD_POLL_BIT_CLOSE,