by nodesocket · 11y ago · 0 comments
sendfile on;
tcp_nopush on;
tcp_nodelay off;
With tcp_nodelay off. Is the author suggesting we turn it on?As the latter part of article describes "tcp_nodelay on" is at the odds with "tcp_nopush on" as they are mutually exclusive, but nginx has special behavior that if you have "sendfile on", it uses "tcp nopush" for everything but the last package and then turns nopush off and enables nodelay to avoid 0.2 sec delay.