Skip to content

Commit

Permalink
Disable fast_open when setsockopt failed
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye authored and Noisyfox committed Feb 1, 2017
1 parent 2a7a120 commit 20e4437
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,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");
}
Expand Down

0 comments on commit 20e4437

Please sign in to comment.