From 3383501e7be2a3d8b2402f84808b0ea0b04f81f6 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Thu, 29 Dec 2016 11:26:32 +0800 Subject: [PATCH] Disable fast_open when it's not supported --- src/local.c | 1 + src/server.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/local.c b/src/local.c index 04994045..c9a56ef1 100644 --- a/src/local.c +++ b/src/local.c @@ -1452,6 +1452,7 @@ main(int argc, char **argv) LOGI("using tcp fast open"); #else LOGE("tcp fast open is not supported by this environment"); + fast_open == 0; #endif } diff --git a/src/server.c b/src/server.c index b97fd2d6..70305fb7 100644 --- a/src/server.c +++ b/src/server.c @@ -1835,6 +1835,7 @@ main(int argc, char **argv) LOGI("using tcp fast open"); #else LOGE("tcp fast open is not supported by this environment"); + fast_open = 0; #endif }