title: Node JS Redis Client Connection Retry
body: <p>Currently I'm using <a href="https://github.com/mranney/node_redis" rel="nofollow noreferrer">https://github.com/mranney/node_redis</a> as my node redis client.</p>
  
  <p><code>client.retry_delay</code> is set to 250ms default. </p>
  
  <p>I tried connecting to redis and once connection was successful, I manually stopped the redis server to see whether <code>client.retry_delay</code> works. But I didn't see it working.</p>
  
  <p>The following log messages are logged on <code>ready</code> &amp; <code>end</code> events on redisClients created using <code>createClient</code>:</p>
  
  <pre><code>[2012-03-30 15:13:05.498] [INFO] Development - Node Application is running on port 8090
  [2012-03-30 15:13:08.507] [INFO] Development - Connection Successfully Established to  '127.0.0.1' '6379'
  [2012-03-30 15:16:33.886] [FATAL] Development - Connection Terminated to  '127.0.0.1' '6379'
  </code></pre>
  
  <p>I didn't see Success message again [ready event was not fired] when the server came back live.</p>
  
  <p>Am I missing something? When will be the retry constant used? Is there a work around to find whether a redis server has come up after a failure from node?</p>