ledgetech / ledgetech/lua-resty-http
当两个nginx 使用 httpc:request_uri() 链式请求时,上层nginx 的set_keepalive将会异常
Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 2.1k
- Forks
- 630
- PR merge metrics
- No merged PRs in 30d
Description
上层nginx->下层nginx->demo,
当两个nginx 使用 httpc:request_uri() 链式请求时,下层nginx正常,上层nginx 提示如下异常,
request_uri(): unread data in buffer,
这将导致无法进行nginx之间无法使用该方法进行长连接,
有什么好的解决办法吗?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the chained upper-nginx -> lower-nginx -> demo request described in the issue, focusing on httpc:request_uri() and set_keepalive. Investigate the reported "unread data in buffer" message and document or verify a fix that allows the chained requests to reuse persistent connections without the upper nginx error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100