redis / redis/node-redis

"total_retry_time" not include connection timeout

Open
#1,444 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

  • Version: 2.8.0
  • Platform: node v8.11.2 on ubuntu
  • Description: Connection to an IP which can't be reached, emit a retry event after a very very long time during every retrying... What I meas the total_retry_time not include connecting time, and retry event will be emited after another connection timeout, if the connection timeout not setted, default is quite a long time.
// connect to an IP not exists
redis.createClient(6379, '999.999.999.999', options);

I solved this with a connect_timeout param which is abandoned by official...this will solve the first time connecting timeout problems...(max connection timeout set to 2S before emiting retry event )

image

Contributor guide

Open the contributing guide

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

Reproduce the issue using redis.createClient with an unreachable IP and the options object described in the report. Trace how connection timeout, retry events, and total_retry_time are measured. Done means the connecting time is included and retry events occur within the configured connection timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, redis, typescript
Domain
backend, networking
Issue type
Bug
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.