Skip to content

Commit b7a89b9

Browse files
committed
Linux TFO depends on TCP_FASTOPEN_CONNECT not MSG_FASTOPEN
During development we were initially using MSG_FASTOPEN but then switched to TCP_FASTOPEN_CONNECT for Linux, but we left in the build-time dependency on just MSG_FASTOPEN which predates TCP_FASTOPEN_CONNECT. This causes build issues on legacy platforms like CentOS 7. Fixes #850 Reported-By: Erik Lax (@eriklax)
1 parent 71237ce commit b7a89b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ares__socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#include <fcntl.h>
5757
#include <limits.h>
5858

59-
#if defined(__linux__) && defined(MSG_FASTOPEN)
59+
#if defined(__linux__) && defined(TCP_FASTOPEN_CONNECT)
6060
# define TFO_SUPPORTED 1
6161
# define TFO_SKIP_CONNECT 0
6262
# define TFO_USE_SENDTO 0

0 commit comments

Comments
 (0)