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
829dfa80
Commit
829dfa80
authored
Feb 27, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Set TCP_NODELAY on the socket for the ncacn_ip_tcp transport to reduce latency.
parent
c0a5671d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+10
-0
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
829dfa80
...
...
@@ -43,6 +43,9 @@
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_TCP_H
# include <netinet/tcp.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
...
...
@@ -742,6 +745,8 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
for
(
ai_cur
=
ai
;
ai_cur
;
ai_cur
=
ai_cur
->
ai_next
)
{
int
val
;
if
(
TRACE_ON
(
rpc
))
{
char
host
[
256
];
...
...
@@ -765,6 +770,11 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
close
(
sock
);
continue
;
}
/* RPC depends on having minimal latency so disable the Nagle algorithm */
val
=
1
;
setsockopt
(
sock
,
SOL_TCP
,
TCP_NODELAY
,
&
val
,
sizeof
(
val
));
tcpc
->
sock
=
sock
;
freeaddrinfo
(
ai
);
...
...
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