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
ef7de1fc
Commit
ef7de1fc
authored
Oct 18, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Set Unix SO_REUSEADDR on all the TCP sockets.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=50955
parent
382ec78d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
197 additions
and
20 deletions
+197
-20
httpapi.c
dlls/httpapi/tests/httpapi.c
+3
-3
sock.c
server/sock.c
+194
-17
No files found.
dlls/httpapi/tests/httpapi.c
View file @
ef7de1fc
...
...
@@ -1397,7 +1397,7 @@ static void test_v2_bound_port(void)
ok
(
!
ret
,
"Failed to bind to port
\n
"
);
swprintf
(
url
,
ARRAY_SIZE
(
url
),
L"http://localhost:%u/"
,
port
);
ret
=
pHttpAddUrlToUrlGroup
(
group
,
url
,
0xdeadbeef
,
0
);
ok
(
ret
==
ERROR_SHARING_VIOLATION
,
"Unexpected failure adding %s, error %u.
\n
"
,
debugstr_w
(
url
),
ret
);
todo_wine
ok
(
ret
==
ERROR_SHARING_VIOLATION
,
"Unexpected failure adding %s, error %u.
\n
"
,
debugstr_w
(
url
),
ret
);
shutdown
(
s2
,
SD_BOTH
);
closesocket
(
s2
);
...
...
@@ -1407,8 +1407,8 @@ static void test_v2_bound_port(void)
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
);
ret
=
connect
(
s
,
(
struct
sockaddr
*
)
&
sockaddr
,
sizeof
(
sockaddr
));
ok
(
ret
,
"Connecting to socket succeeded, %lu.
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
WSAECONNREFUSED
,
"Unexpected error connecting to socket, %lu.
\n
"
,
GetLastError
());
todo_wine
ok
(
ret
,
"Connecting to socket succeeded, %lu.
\n
"
,
GetLastError
());
todo_wine
ok
(
GetLastError
()
==
WSAECONNREFUSED
,
"Unexpected error connecting to socket, %lu.
\n
"
,
GetLastError
());
closesocket
(
s
);
ret
=
pHttpCloseRequestQueue
(
dummy_queue
);
...
...
server/sock.c
View file @
ef7de1fc
This diff is collapsed.
Click to expand it.
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