Syntax: | reset_timedout_connection |
---|---|
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.
Please login to continue.