Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4c409f8a
Commit
4c409f8a
authored
May 12, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
May 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Post socket events only if selecting for them.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53210ceb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
sock.c
dlls/ws2_32/tests/sock.c
+11
-11
sock.c
server/sock.c
+6
-3
No files found.
dlls/ws2_32/tests/sock.c
View file @
4c409f8a
...
...
@@ -4391,35 +4391,35 @@ static void test_oob_events(struct event_test_ctx *ctx)
ret
=
send
(
client
,
"a"
,
1
,
MSG_OOB
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
check_events
_todo_msg
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
_todo
(
ctx
,
0
,
0
,
0
);
check_events
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
(
ctx
,
0
,
0
,
0
);
select_events
(
ctx
,
server
,
FD_ACCEPT
|
FD_CLOSE
|
FD_CONNECT
|
FD_OOB
|
FD_READ
);
if
(
ctx
->
is_message
)
check_events
_todo_msg
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
_todo
(
ctx
,
0
,
0
,
0
);
check_events
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
(
ctx
,
0
,
0
,
0
);
select_events
(
ctx
,
server
,
0
);
select_events
(
ctx
,
server
,
FD_ACCEPT
|
FD_CLOSE
|
FD_CONNECT
|
FD_OOB
|
FD_READ
);
if
(
ctx
->
is_message
)
check_events
_todo_msg
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
_todo
(
ctx
,
0
,
0
,
0
);
check_events
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
(
ctx
,
0
,
0
,
0
);
ret
=
send
(
client
,
"b"
,
1
,
MSG_OOB
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
if
(
!
ctx
->
is_message
)
check_events
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
_todo
(
ctx
,
0
,
0
,
0
);
check_events
_todo_event
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
(
ctx
,
0
,
0
,
0
);
ret
=
recv
(
server
,
buffer
,
1
,
MSG_OOB
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
check_events_todo
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
_todo_msg
(
ctx
,
0
,
0
,
0
);
check_events
(
ctx
,
0
,
0
,
0
);
ret
=
recv
(
server
,
buffer
,
1
,
MSG_OOB
);
todo_wine
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
check_events
_todo_msg
(
ctx
,
0
,
0
,
0
);
check_events
(
ctx
,
0
,
0
,
0
);
/* Send data while we're not selecting. */
...
...
@@ -4428,7 +4428,7 @@ static void test_oob_events(struct event_test_ctx *ctx)
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
select_events
(
ctx
,
server
,
FD_ACCEPT
|
FD_CLOSE
|
FD_CONNECT
|
FD_OOB
|
FD_READ
);
check_events
_todo_msg
(
ctx
,
FD_OOB
,
0
,
200
);
check_events
(
ctx
,
FD_OOB
,
0
,
200
);
ret
=
recv
(
server
,
buffer
,
1
,
MSG_OOB
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
...
...
server/sock.c
View file @
4c409f8a
...
...
@@ -627,9 +627,12 @@ static void post_socket_event( struct sock *sock, unsigned int event_bit, unsign
{
unsigned
int
event
=
(
1
<<
event_bit
);
sock
->
pending_events
|=
event
;
sock
->
reported_events
|=
event
;
sock
->
errors
[
event_bit
]
=
error
;
if
(
!
(
sock
->
reported_events
&
event
))
{
sock
->
pending_events
|=
event
;
sock
->
reported_events
|=
event
;
sock
->
errors
[
event_bit
]
=
error
;
}
}
static
void
sock_dispatch_events
(
struct
sock
*
sock
,
int
prevstate
,
int
event
,
int
error
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment