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
c280970c
Commit
c280970c
authored
May 11, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Set TCP_NODELAY on socket.
parent
e8bdbf87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
netconnection.c
dlls/wininet/netconnection.c
+11
-1
No files found.
dlls/wininet/netconnection.c
View file @
c280970c
...
...
@@ -58,6 +58,9 @@
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_TCP_H
# include <netinet/tcp.h>
#endif
#ifdef HAVE_OPENSSL_SSL_H
# include <openssl/ssl.h>
# include <openssl/opensslv.h>
...
...
@@ -497,7 +500,7 @@ static DWORD init_openssl(void)
DWORD
create_netconn
(
BOOL
useSSL
,
server_t
*
server
,
DWORD
security_flags
,
netconn_t
**
ret
)
{
netconn_t
*
netconn
;
int
result
;
int
result
,
flag
;
if
(
useSSL
)
{
DWORD
res
;
...
...
@@ -532,6 +535,13 @@ DWORD create_netconn(BOOL useSSL, server_t *server, DWORD security_flags, netcon
return
sock_get_error
(
errno
);
}
#ifdef TCP_NODELAY
flag
=
1
;
result
=
setsockopt
(
netconn
->
socketFD
,
IPPROTO_TCP
,
TCP_NODELAY
,
(
void
*
)
&
flag
,
sizeof
(
flag
));
if
(
result
<
0
)
WARN
(
"setsockopt(TCP_NODELAY) failed
\n
"
);
#endif
server_addref
(
server
);
netconn
->
server
=
server
;
...
...
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