aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2015-10-21 23:52:29 +0000
committerGregory Maxwell <greg@xiph.org>2015-10-22 17:57:48 +0000
commita4e28b3d1e5c95eb0c87f144851cd65048c3e0bc (patch)
tree75863cc33e53fef354777cb7b9f206736c805201 /src/compat.h
parent0fbfc5106cd9866325b4a1ab3b9db8e91e54f070 (diff)
Set TCP_NODELAY on P2P sockets.
Nagle appears to be a significant contributor to latency now that the static sleeps are gone. Most of our messages are relatively large compared to IP + TCP so I do not expect this to create enormous overhead. This may also reduce traffic burstyness somewhat.
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h
index 5378c2c761..20c2a25143 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -38,6 +38,7 @@
#include <sys/types.h>
#include <net/if.h>
#include <netinet/in.h>
+#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <limits.h>