reset_timedout_connection

Syntax: reset_timedout_connection on | off;
Default: reset_timedout_connection off;
Context: http, server, location

Enables or disables resetting timed out connections. The reset is performed as follows. Before closing a socket, the SO_LINGER option is set on it with a timeout value of 0. When the socket is closed, TCP RST is sent to the client, and all memory occupied by this socket is released. This helps avoid keeping an already closed socket with filled buffers in a FIN_WAIT1 state for a long time.

It should be noted that timed out keep-alive connections are closed normally.

doc_nginx
2017-02-09 07:08:43
Comments
Leave a Comment

Please login to continue.