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/
98
votes
Michiel Klaver
shared this idea
-
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" \