Skip to content

Commit

Permalink
Linux TFO depends on TCP_FASTOPEN_CONNECT not MSG_FASTOPEN
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
bradh352 committed Aug 3, 2024
1 parent 71237ce commit b7a89b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ares__socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#include <fcntl.h>
#include <limits.h>

#if defined(__linux__) && defined(MSG_FASTOPEN)
#if defined(__linux__) && defined(TCP_FASTOPEN_CONNECT)
# define TFO_SUPPORTED 1
# define TFO_SKIP_CONNECT 0
# define TFO_USE_SENDTO 0
Expand Down

0 comments on commit b7a89b9

Please sign in to comment.