[edit] reset_timedout_connection

Syntax: reset_timedout_connection on | off
Default: off
Context: http
server
location
Reference: reset_timedout_connection


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 the RST packet to be sent to the client upon closing the socket, thus freeing all memory associated with it. This prevents the socket in the FIN_WAIT1 state, along with the buffers associated with it from lying around.

Note that sockets with keepalive connections, after the defined timeout, are closed in the usual way.


Module: HttpCoreModule