[edit] keepalive_timeout

Syntax: keepalive_timeout timeout [ header_timeout ]
Default: 75s
Context: http
server
location
Reference: keepalive_timeout


The first parameter assigns the timeout for keep-alive connections with the client. The server will close connections after this time.

The optional second parameter assigns the time value in the header Keep-Alive: timeout=time of the response. This header can convince some browsers to close the connection, so that the server does not have to. Without this parameter, nginx does not send a Keep-Alive header (though this is not what makes a connection "keep-alive").

The parameters can differ from each other.

Notes on how browsers handle the Keep-Alive header:


Module: HttpCoreModule