title: Predis Error while reading line from server , timeout fix
body: <p>I am using Redis with Daemon processes as well as in regular caching</p>
  <ul>
  <li><p>Daemon processes with supervisor (Laravel Redis queues)</p>
  </li>
  <li><p>Regular caching as key value pair</p>
  </li>
  </ul>
  <p><code>timeout=300 </code> is currently at my redis.conf file</p>
  <p>It had been suggested to change it to <code>timeout=0</code> at several Git links (<a href="https://github.com/predis/predis/issues/33" rel="nofollow noreferrer">https://github.com/predis/predis/issues/33</a>)</p>
  <p>My concern is that, if I do a timeout as 0, the redis sever will not drop any connection</p>
  <p>Over a period of time, I see chances of getting error of <code>max number of clients reached</code></p>
  <p><em><strong>Seeking advice for changing timeout --&gt; 0 at redis.conf</strong></em></p>
  <hr />
  <p>Currently, I get following error logs frequently (every 2-3 min) [timeout=300]</p>
  <pre><code>{&quot;message&quot;:&quot;Error while reading line from the server. [tcp://10.10.101.237:6379]&quot;,&quot;context&quot;:
  {&quot;exception&quot;:{&quot;class&quot;:&quot;Predis\\Connection\\ConnectionException&quot;,&quot;message&quot;:&quot;Error while reading 
  line from the server. 
  [tcp://10.10.101.237:6379]&quot;,&quot;code&quot;:0,&quot;file&quot;:&quot;/var/www/api/vendor/predis/predis/src/Connection/Ab
  stractConnection.php:155&quot;}},&quot;level&quot;:400,&quot;level_name&quot;:&quot;ERROR&quot;,&quot;channel&quot;:&quot;production&quot;,&quot;datetime&quot;:
  {&quot;date&quot;:&quot;2020-09-23 07:14:01.207506&quot;,&quot;timezone_type&quot;:3,&quot;timezone&quot;:&quot;Asia/Kolkata&quot;},&quot;extra&quot;:[]}
  
  </code></pre>