Enhance the ngx_http_upstream_keepalive_module to support setting keepalive timeout:
upstream backend { |
Directives
Syntax: keepalive_timeout time
Default: -
Context: upstream
Controls the max idle time used in backend keepalive connections. The 'time' argument can be an integer, with an optional time unit, like s (second), ms (millisecond), m (minute). The default time unit is s (second).