make nginx even faster! (tcp_fastopen)
Please compile nginx with these extra options to provide even faster time-to-first-byte responses on modern kernels:
./configure ... --with-cc-opt='-DTCP_FASTOPEN=23'
Background information and complete guide: https://www.masv.io/enabling-tcp-fast-open-nginx-centos-7/
97
votes
![](https://secure.gravatar.com/avatar/b7a108451e5ec1d4001d434c3ab2aefe?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Anonymous commented
+1
-
Wiz commented
Good idea! I'll take it even further with:
./configure --with-cc-opt="-m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -Wno-error=strict-aliasing -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -gsplit-dwarf" \