HTTP directives
keepalive_requests directive (HTTP)
Cap the number of requests processed per persistent client connection; do not confuse with upstream keepalive pool size. Context: http, server, location. Documented default: 1000. Version: 0.8.0. OSS documentation; check target build. Default was 100 before 1.19.10. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.
Formal Syntax & Structure
nginx syntaxnginx
keepalive_requests number;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| number | integer | Value for keepalive requests. |
Working Example
Example Snippetnginx
keepalive_requests 250;