Browse Source

Disable fast_open when setsockopt failed

pull/1022/head
Max Lv 8 years ago
parent
commit
47b3406739
1 changed files with 1 additions and 0 deletions
  1. 1
      src/server.c

1
src/server.c

@ -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");
}

Loading…
Cancel
Save