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
4d56a33a
Commit
4d56a33a
authored
Mar 14, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Ignore some ICMP-originated socket errors for connectionless sockets.
parent
9d3e458c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
sock.c
server/sock.c
+10
-4
No files found.
server/sock.c
View file @
4d56a33a
...
...
@@ -813,7 +813,7 @@ static void post_sock_messages( struct sock *sock )
}
}
static
inline
int
sock_error
(
struct
sock
*
sock
)
static
inline
int
sock_error
(
struct
sock
*
sock
,
int
*
poll_event
)
{
int
error
=
0
;
socklen_t
len
=
sizeof
(
error
);
...
...
@@ -839,8 +839,14 @@ static inline int sock_error( struct sock *sock )
error
=
sock
->
errors
[
AFD_POLL_BIT_ACCEPT
];
break
;
case
SOCK_CONNECTED
:
case
SOCK_CONNECTIONLESS
:
if
(
error
==
ENETUNREACH
||
error
==
EHOSTUNREACH
||
error
==
ECONNRESET
)
{
if
(
poll_event
)
*
poll_event
&=
~
POLLERR
;
return
0
;
}
/* fallthrough */
case
SOCK_CONNECTED
:
if
(
error
==
ECONNRESET
||
error
==
EPIPE
)
{
sock
->
reset
=
1
;
...
...
@@ -1346,7 +1352,7 @@ static void sock_poll_event( struct fd *fd, int event )
fprintf
(
stderr
,
"socket %p select event: %x
\n
"
,
sock
,
event
);
if
(
event
&
(
POLLERR
|
POLLHUP
))
error
=
sock_error
(
sock
);
error
=
sock_error
(
sock
,
&
event
);
switch
(
sock
->
state
)
{
...
...
@@ -3115,7 +3121,7 @@ static void sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
return
;
}
error
=
sock_error
(
sock
);
error
=
sock_error
(
sock
,
NULL
);
if
(
!
error
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
sock
->
errors
);
++
i
)
...
...
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