Reputation: 1768
HTTP client could send multiple requests in one HTTP 1.1 connection due to Keep alive feature.
But is there any limit of that number in protocol?
If not, what is the implementation for Nginx about that? Does it have any configuration?
Upvotes: 3
Views: 4952
Reputation: 9845
The answer is 100 for nginx 1.9.9 or earlier and 1000, for nginx 1.9.10 and later.
Thekeepalive_requests
directive (default is 100/1000) allows you to configure the maximum number of requests done through a single keepalive connection. From documentation link above:
Sets the maximum number of requests that can be served through one keep-alive connection. After the maximum number of requests are made, the connection is closed.
A mere equivalent for this directive in HTTP/2 is http2_max_requests
Upvotes: 5