openresty / openresty/lua-resty-core

Support for keepalive_timeout in upstream block

Open
#266 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
853
Forks
286
Avg merge
35m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ngx.balancer.set_timeouts() and the set_timeouts documentation in lib/ngx/balancer.md, then compare the API with nginx's upstream keepalive_timeout directive documentation. Done means determining whether this directive can be supported by the API and documenting or exposing that support consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.