Wiki updated with reset_timedout_connection.
António P. P. Almeida
appa at perusio.net
Fri Jul 15 18:11:37 UTC 2011
On 15 Jul 2011 18h23 WEST, nginx-forum at nginx.us wrote:
> This directive enables or disables resetting the connection upon
> timeout. When resetting the connection, before the socket is
> closed, the SO_LINGER option is set to the socket with timeout value
> of 0, which forces RST packet to be sent to client upon closing the
> socket, while all memory associated with the socket is freed. This
> allows to avoid the situation when the already closed socket is in
> the FIN_WAIT1 state with the loaded buffers.
> The keepalive connections, after timeout, are closed in the usual
Thank you for your translation. Google translate really sucks :(
I ended up with this:
syntax: reset_timedout_connection [on|off]
default: reset_timedout_connection off
context: http, server, location
This directive enables or disables resetting the connection on
timeout. When resetting the connection, before the socket is closed,
the socket SO_LINGER option is set with a 0 timeout, which forces a
RST packet to be sent to the client upon closing the socket, thus
freeing all memory associated with it. This prevents that a socket
in the FIN_WAIT1 state keep the buffers associated with it lying
Note that sockets with keepalive connections, after the defined
timeout, are closed in the usual way.
I hope it's clearer and more faithful to the original docs.
More information about the nginx