mranney/node_redis — Issue #151: Failure in initial conn results in NaN retry delay
Author: stephank
Created: 2011-11-15 11:49:07+00:00
State: open

As of 0.7.0, `current_retry_delay` is initialized in `on_connect`, which is never called when the initial connection fails.

This is easily reproduced by simply not having a Redis running when `createClient` is called, causing `ECONNREFUSED` and no further attempts.

It's also easy to trigger the working scenario by starting a Redis, connecting to it and then killing the server while connected. The client will then reconnect as expected.