Mastering Nginx

(Ron) #1

A Configuration Guide


[ 28 ]

Directive Explanation
variables_hash_bucket_size It specifies the bucket size used to
hold the remaining variables.
variables_hash_max_size It specifies the maximum size of
the hash that holds the remaining
variables.

Socket directives


These directives describe how NGINX can set various options on the TCP sockets
it creates.


Table: HTTP socket directives

Directive Explanation
lingering_close It specifies how a client connection will be
kept open for more data.
lingering_time In connection with the lingering_close
directive, this directive will specify how
long a client connection will be kept open
for processing more data.
lingering_timeout Also in conjunction with lingering_
close, this directive indicates how long
NGINX will wait for additional data before
closing the client connection.
reset_timedout_connection With this directive enabled, connections
that have been timed out will immediately
be reset, freeing all associated memory. The
default is to leave the socket in the FIN_
WAIT1 state, which will always be the case
for keep-alive connections.
send_lowat If non-zero, NGINX will try to minimize
the number of send operations on client
sockets. It is ignored on Linux, Solaris, and
Windows.
send_timeout Sets a timeout between two successive write
operations for a client receiving a response.
Free download pdf