Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4f9e09ea
Commit
4f9e09ea
authored
May 13, 2010
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
May 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Get rid of sock_try_event.
We *might* need to ignore POLLERR messages for UDP sockets, as the condition is actually temporary and sock_try_event was hiding this.
parent
d03fe9d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
sock.c
server/sock.c
+3
-21
No files found.
server/sock.c
View file @
4f9e09ea
...
...
@@ -254,18 +254,6 @@ static int sock_reselect( struct sock *sock )
return
ev
;
}
/* After POLLHUP is received, the socket will no longer be in the main select loop.
This function is used to signal pending events nevertheless */
static
void
sock_try_event
(
struct
sock
*
sock
,
int
event
)
{
event
=
check_fd_events
(
sock
->
fd
,
event
);
if
(
event
)
{
if
(
debug_level
)
fprintf
(
stderr
,
"sock_try_event: %x
\n
"
,
event
);
sock_poll_event
(
sock
->
fd
,
event
);
}
}
/* wake anybody waiting on the socket event or send the associated message */
static
void
sock_wake_up
(
struct
sock
*
sock
,
int
pollev
)
{
...
...
@@ -509,7 +497,6 @@ static void sock_queue_async( struct fd *fd, const async_data_t *data, int type,
{
struct
sock
*
sock
=
get_fd_user
(
fd
);
struct
async_queue
*
queue
;
int
pollev
;
assert
(
sock
->
obj
.
ops
==
&
sock_ops
);
...
...
@@ -541,15 +528,13 @@ static void sock_queue_async( struct fd *fd, const async_data_t *data, int type,
set_error
(
STATUS_PENDING
);
}
pollev
=
sock_reselect
(
sock
);
if
(
pollev
)
sock_try_event
(
sock
,
pollev
);
sock_reselect
(
sock
);
}
static
void
sock_reselect_async
(
struct
fd
*
fd
,
struct
async_queue
*
queue
)
{
struct
sock
*
sock
=
get_fd_user
(
fd
);
int
events
=
sock_reselect
(
sock
);
if
(
events
)
sock_try_event
(
sock
,
events
);
sock_reselect
(
sock
);
}
static
void
sock_cancel_async
(
struct
fd
*
fd
,
struct
process
*
process
,
struct
thread
*
thread
,
client_ptr_t
iosb
)
...
...
@@ -883,7 +868,6 @@ DECL_HANDLER(set_socket_event)
if
(
debug_level
&&
sock
->
event
)
fprintf
(
stderr
,
"event ptr: %p
\n
"
,
sock
->
event
);
pollev
=
sock_reselect
(
sock
);
if
(
pollev
)
sock_try_event
(
sock
,
pollev
);
if
(
sock
->
mask
)
sock
->
state
|=
FD_WINE_NONBLOCKING
;
...
...
@@ -943,7 +927,6 @@ DECL_HANDLER(get_socket_event)
DECL_HANDLER
(
enable_socket_event
)
{
struct
sock
*
sock
;
int
pollev
;
if
(
!
(
sock
=
(
struct
sock
*
)
get_handle_obj
(
current
->
process
,
req
->
handle
,
FILE_WRITE_ATTRIBUTES
,
&
sock_ops
)))
...
...
@@ -955,8 +938,7 @@ DECL_HANDLER(enable_socket_event)
sock
->
state
&=
~
req
->
cstate
;
if
(
sock
->
type
!=
SOCK_STREAM
)
sock
->
state
&=
~
STREAM_FLAG_MASK
;
pollev
=
sock_reselect
(
sock
);
if
(
pollev
)
sock_try_event
(
sock
,
pollev
);
sock_reselect
(
sock
);
release_object
(
&
sock
->
obj
);
}
...
...
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