Skip to content

Commit c5fefb7

Browse files
committedJan 26, 2017
perf: increase the default reconnection interval
Closes #414
1 parent 2820de7 commit c5fefb7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ using the `retryStrategy` option:
504504
var redis = new Redis({
505505
// This is the default value of `retryStrategy`
506506
retryStrategy: function (times) {
507-
var delay = Math.min(times * 2, 2000);
507+
var delay = Math.min(times * 50, 2000);
508508
return delay;
509509
}
510510
});

‎lib/redis.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Redis.defaultOptions = {
154154
family: 4,
155155
connectTimeout: 3000,
156156
retryStrategy: function (times) {
157-
return Math.min(times * 2, 2000);
157+
return Math.min(times * 50, 2000);
158158
},
159159
keepAlive: 0,
160160
noDelay: true,

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"flexbuffer": "0.0.6",
3434
"lodash": "^4.8.2",
3535
"redis-commands": "^1.2.0",
36-
"redis-parser": "^2.3.0"
36+
"redis-parser": "^2.4.0"
3737
},
3838
"devDependencies": {
3939
"chai": "^3.5.0",

0 commit comments

Comments
 (0)
Please sign in to comment.