On platforms which support it, default to requesting TCP fastopen. Note that we do not document the default, so if this turns out to be a mistake we can simply revert this change. --- server/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/main.c b/server/main.c index d6e93a67ff..c5700b48c0 100644 --- a/server/main.c +++ b/server/main.c @@ -59,6 +59,10 @@ #include <sys/vsock.h> #endif +#ifdef HAVE_NETINET_TCP_H +#include <netinet/tcp.h> +#endif + #include <pthread.h> #include <dlfcn.h> @@ -80,7 +84,11 @@ #define main fuzzer_main #endif +#ifdef TCP_FASTOPEN +#define FASTOPEN_DEFAULT 1 +#else #define FASTOPEN_DEFAULT 0 +#endif static char *make_random_fifo (void); static struct backend *open_plugin_so (size_t i, const char *filename, -- 2.46.0