diff --git a/README.md b/README.md index b44d52227f..4e51156cae 100644 --- a/README.md +++ b/README.md @@ -581,12 +581,12 @@ some kind of maximum queue depth for pre-connection commands. ## client.retry_delay -Current delay in milliseconds before a connection retry will be attempted. This starts at `250`. +Current delay in milliseconds before a connection retry will be attempted. This starts at `200`. ## client.retry_backoff Multiplier for future retry timeouts. This should be larger than 1 to add more time between retries. -Defaults to 1.7. The default initial connection retry is 250, so the second retry will be 425, followed by 723.5, etc. +Defaults to 1.7. The default initial connection retry is 200, so the second retry will be 340, followed by 578, etc. ### Commands with Optional and Keyword arguments diff --git a/index.js b/index.js index 28c88a53ab..cf6a862a21 100644 --- a/index.js +++ b/index.js @@ -123,7 +123,7 @@ RedisClient.prototype.install_stream_listeners = function() { RedisClient.prototype.initialize_retry_vars = function () { this.retry_timer = null; this.retry_totaltime = 0; - this.retry_delay = 150; + this.retry_delay = 200; this.retry_backoff = 1.7; this.attempts = 1; };