]> git.kaiwu.me - nginx.git/commit
Upstream keepalive: keepalive_requests directive.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 10 Aug 2018 18:54:46 +0000 (21:54 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 10 Aug 2018 18:54:46 +0000 (21:54 +0300)
commitd817ceae729914e7423c4c206165fc244513f021
tree556b398cd41a7ad290cf92fac7ab7f1346159248
parent7de808990b8e49e2e18c2a013e4cca82a092fdbc
Upstream keepalive: keepalive_requests directive.

The directive configures maximum number of requests allowed on
a connection kept in the cache.  Once a connection reaches the number
of requests configured, it is no longer saved to the cache.
The default is 100.

Much like keepalive_requests for client connections, this is mostly
a safeguard to make sure connections are closed periodically and the
memory allocated from the connection pool is freed.
src/http/modules/ngx_http_upstream_keepalive_module.c
src/http/ngx_http_upstream.c