António P. P. Almeida
July 15, 2011 02:12PM
On 15 Jul 2011 18h23 WEST, nginx-forum@nginx.us wrote:

Hello Andrejs,

> 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
> way.

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
around.

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.
--- appa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Wiki updated with reset_timedout_connection.

António P. P. Almeida July 15, 2011 11:48AM

Re: Wiki updated with reset_timedout_connection.

locojohn July 15, 2011 01:23PM

Re: Wiki updated with reset_timedout_connection.

António P. P. Almeida July 15, 2011 02:12PM

Re: Wiki updated with reset_timedout_connection.

locojohn July 15, 2011 02:21PM

Re: Wiki updated with reset_timedout_connection.

António P. P. Almeida July 15, 2011 03:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready