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
ddb92239
Commit
ddb92239
authored
Jul 06, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Clear the connection error after a successful connection.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53ec99da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
sock.c
dlls/ws2_32/tests/sock.c
+1
-1
sock.c
server/sock.c
+3
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
ddb92239
...
...
@@ -3344,7 +3344,7 @@ static void test_select(void)
id
=
0xdeadbeef
;
ret
=
getsockopt
(
fdWrite
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
id
,
&
len
);
ok
(
!
ret
,
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
todo_wine
ok
(
!
id
,
"got error %u
\n
"
,
id
);
ok
(
!
id
,
"got error %u
\n
"
,
id
);
closesocket
(
fdWrite
);
...
...
server/sock.c
View file @
ddb92239
...
...
@@ -983,7 +983,10 @@ static void sock_dispatch_events( struct sock *sock, enum connection_state prevs
case
SOCK_CONNECTING
:
if
(
event
&
POLLOUT
)
{
post_socket_event
(
sock
,
AFD_POLL_BIT_CONNECT
,
0
);
sock
->
errors
[
AFD_POLL_BIT_CONNECT_ERR
]
=
0
;
}
if
(
event
&
(
POLLERR
|
POLLHUP
))
post_socket_event
(
sock
,
AFD_POLL_BIT_CONNECT_ERR
,
error
);
break
;
...
...
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