Skip to content

Commit

Permalink
perf: increase the default reconnection interval
Browse files Browse the repository at this point in the history
Closes #414
  • Loading branch information
luin committed Jan 26, 2017
1 parent 2820de7 commit c5fefb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ using the `retryStrategy` option:
var redis = new Redis({
// This is the default value of `retryStrategy`
retryStrategy: function (times) {
var delay = Math.min(times * 2, 2000);
var delay = Math.min(times * 50, 2000);
return delay;
}
});
Expand Down
2 changes: 1 addition & 1 deletion lib/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Redis.defaultOptions = {
family: 4,
connectTimeout: 3000,
retryStrategy: function (times) {
return Math.min(times * 2, 2000);
return Math.min(times * 50, 2000);
},
keepAlive: 0,
noDelay: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"flexbuffer": "0.0.6",
"lodash": "^4.8.2",
"redis-commands": "^1.2.0",
"redis-parser": "^2.3.0"
"redis-parser": "^2.4.0"
},
"devDependencies": {
"chai": "^3.5.0",
Expand Down

0 comments on commit c5fefb7

Please sign in to comment.