mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 22:13:49 +00:00
Disable fast_open when setsockopt failed
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user