openresty / openresty/lua-resty-redis
about redis connection three seconds timeout probleam
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 2k
- Forks
- 447
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 3
Description
connection timeout error occured sometimes.
And i set timeout from 2 seconds to 5 seconds like this redis:set_timeout(5000),also ngx.log connection used time. when connection error occured the connection used time aways 3 seconds,
set timeout 5 seconds is not effective?
below is the log from error.log when connection timeout occured
2016/08/02 06:42:41 [error] 35134#0: *10886382 connect() failed (110: Connection timed out)
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 with the redis:set_timeout(5000) call and the reported nginx error.log entry showing connect() failed after a three-second timeout. Check how connection timeouts are configured and measured, then reproduce the failure to determine whether the API setting affects connect timeouts; done means the behavior is explained and the issue has a clear fix or documentation outcome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, redis
- Domain
- databases, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100