xin

Directive reference

keepalive_timeout

Controls how long an idle client connection remains open.

Syntaxkeepalive_timeout timeout [header_timeout];
Contextshttpserverlocation
Defaultkeepalive_timeout 75s;

Behavior

Zero disables keepalive. The optional second value controls the Keep-Alive response header.

Example

keepalive_timeout 30s;

Related directives

keepalive_requests