Disable fast_open when it's not supported

This commit is contained in:
Max Lv
2016-12-29 11:26:32 +08:00
parent 8557555c7c
commit 3383501e7b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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
}
+1
View File
@@ -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
}