Directive reference
keepalive_timeout
Controls how long an idle client connection remains open.
| Syntax | keepalive_timeout timeout [header_timeout]; |
|---|---|
| Contexts | httpserverlocation |
| Default | keepalive_timeout 75s; |
Behavior
Zero disables keepalive. The optional second value controls the Keep-Alive response header.
Example
keepalive_timeout 30s;