Chapter 2
[ 29 ]
Directive Explanation
tcp_nodelay Enables or disables the TCP_NODELAY
option for keep-alive connections.
tcp_nopush Relevant only when sendfile is used. It
enables NGINX to attempt to send response
headers in one packet, as well as sending a
file in full packets.
Sample configuration
The following is an example of an HTTP configuration section:
http {
include /opt/local/etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
server_names_hash_max_size 1024;
}
This context block would go after any global configuration directives in the
nginx.conf file.