openresty / lua-resty-core

New FFI-based API for lua-nginx-module
809 stars 273 forks source link

Support for keepalive_timeout in upstream block #266

Open jils2013 opened 5 years ago

jils2013 commented 5 years ago

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive_timeout
This directive appeared in version 1.15.3.
Sets a timeout during which an idle keepalive connection to an upstream server will stay open.

any plan to support this directive in ngx.balancer.set_timeouts()? https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md#set_timeouts

doujiang24 commented 5 years ago

yeah, it should be useful, patches welcome :)