Disable fast_open when setsockopt failed

This commit is contained in:
Max Lv
2016-12-29 11:40:07 +08:00
parent 3383501e7b
commit 47b3406739
+1
View File
@@ -360,6 +360,7 @@ setfastopen(int fd)
if (s == -1) {
if (errno == EPROTONOSUPPORT || errno == ENOPROTOOPT) {
LOGE("fast open is not supported on this platform");
fast_open = 0;
} else {
ERROR("setsockopt");
}