openresty / openresty/lua-resty-redis

about redis connection three seconds timeout probleam

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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.