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
74240a35
Commit
74240a35
authored
Feb 15, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Set TCP SYN count on sockets.
parent
4e6a5d62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
sock.c
server/sock.c
+9
-3
No files found.
server/sock.c
View file @
74240a35
...
...
@@ -39,6 +39,9 @@
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_TCP_H
# include <netinet/tcp.h>
#endif
#include <poll.h>
#include <sys/time.h>
#include <sys/types.h>
...
...
@@ -1921,9 +1924,12 @@ static int init_socket( struct sock *sock, int family, int type, int protocol )
if
(
is_tcp_socket
(
sock
))
{
int
reuse
=
1
;
setsockopt
(
sockfd
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
reuse
,
sizeof
(
reuse
)
);
value
=
1
;
setsockopt
(
sockfd
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
value
,
sizeof
(
value
)
);
#ifdef TCP_SYNCNT
value
=
4
;
setsockopt
(
sockfd
,
IPPROTO_TCP
,
TCP_SYNCNT
,
&
value
,
sizeof
(
value
)
);
#endif
}
if
(
sock
->
fd
)
...
...
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