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
535f878e
Commit
535f878e
authored
May 12, 2010
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
May 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Keep polling sockets after we got a 0 recv, but not for POLLIN.
parent
f928580a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
sock.c
server/sock.c
+5
-2
No files found.
server/sock.c
View file @
535f878e
...
...
@@ -428,13 +428,16 @@ static void sock_poll_event( struct fd *fd, int event )
if
(
debug_level
)
fprintf
(
stderr
,
"socket %p got OOB data
\n
"
,
sock
);
}
/* According to WS2 specs, FD_CLOSE is only delivered when there is
no more data to be read (i.e. hangup_seen = 1) */
else
if
(
hangup_seen
&&
(
sock
->
state
&
(
FD_READ
|
FD_WRITE
)
))
if
(
hangup_seen
&&
(
sock
->
state
&
(
FD_READ
|
FD_WRITE
)
))
{
sock
->
errors
[
FD_CLOSE_BIT
]
=
sock_error
(
fd
);
if
(
(
event
&
POLLERR
)
||
(
sock_shutdown_type
==
SOCK_SHUTDOWN_EOF
&&
(
event
&
POLLHUP
)
))
sock
->
state
&=
~
FD_WRITE
;
sock
->
state
&=
~
FD_READ
;
sock
->
pmask
|=
FD_CLOSE
;
sock
->
hmask
|=
FD_CLOSE
;
if
(
debug_level
)
...
...
@@ -443,7 +446,7 @@ static void sock_poll_event( struct fd *fd, int event )
}
}
if
(
sock
->
pmask
&
FD_CLOSE
||
event
&
(
POLLERR
|
POLLHUP
)
)
if
(
event
&
(
POLLERR
|
POLLHUP
)
)
{
if
(
debug_level
)
fprintf
(
stderr
,
"removing socket %p from select loop
\n
"
,
sock
);
...
...
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