Skip to content

Commit

Permalink
Reduce the number of TFO buckets, set it to 1 on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Dec 31, 2016
1 parent 14c62e5 commit 74bcf58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ftpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5424,7 +5424,11 @@ static void standalone_server(void)
}
# ifdef TCP_FASTOPEN
{
int tfo = maxusers > 0U ? 3U + maxusers / 8U : DEFAULT_BACKLOG;
# ifdef __APPLE__
int tfo = 1;
# else
int tfo = 5;
# endif
setsockopt(listenfd, IPPROTO_TCP, TCP_FASTOPEN,
(void *) &tfo, sizeof tfo);
}
Expand Down

0 comments on commit 74bcf58

Please sign in to comment.