title: redis timeout with predis
body: <p>I'm using redis with php (predis at <a href="http://github.com/nrk/predis/" rel="nofollow noreferrer">http://github.com/nrk/predis/</a>) and am experiencing frequent timeout. The stack trace shows:</p>
  
  <pre><code>[04-Apr-2010 03:39:50] PHP Fatal error:  Uncaught exception 'Predis_ClientException' with message 'Connection timed out' in redis.php:697
  Stack trace:
  #0 redis.php(757): Predis_Connection-&gt;connect()
  #1 redis.php(729): Predis_Connection-&gt;getSocket()
  #2 redis.php(825): Predis_Connection-&gt;writeCommand(Object(Predis_Commands_ListRange))
  #3 redis.php(165): Predis_ConnectionCluster-&gt;writeCommand(Object(Predis_Commands_ListRange))
  #4 redis.php(173): Predis_Client-&gt;executeCommandInternal(Object(Predis_ConnectionCluster), Object(Predis_Commands_ListRange))
  #5 redis.php(157): Predis_Client-&gt;executeCommand(Object(Predis_Commands_ListRange))
  #6 [internal function]: Predis_Client-&gt;__call('lrange', Array)
  </code></pre>
  
  <p>This happens consistently and I have no idea why. Anyone has any idea?</p>