title: How to Resolve Predis Connection Timeout
body: <p>i'm using predis integrated with laravel, in some case predis got connection timeout, but when i'm trying to connect redis server via cli, i got connected perfectly</p>
  <p>can anyone help me how to resolve it ?</p>
  <pre><code>Predis\Connection\ConnectionException {#7222-connection: Predis\Connection\StreamConnection {#7171
  -resource: null
  -cachedId: null
  #parameters: Predis\Connection\Parameters {#7178
    -parameters: array:5 [
      &quot;host&quot; =&gt; &quot;Host&quot;
      &quot;password&quot; =&gt; &quot;Password&quot;
      &quot;port&quot; =&gt; &quot;6379&quot;
      &quot;database&quot; =&gt; 0
      &quot;scheme&quot; =&gt; &quot;tcp&quot;
    ]
  }
  #initCommands: array:1 [
    0 =&gt; Predis\Command\RawCommand {#7218
      -slot: null
      -commandID: &quot;SELECT&quot;
      -arguments: array:1 [
        0 =&gt; 0
      ]
    }
  ]}#message: &quot;Connection timed out [tcp://Host:6379]&quot; #code: 110 #file:&quot;./vendor/predis/predis/src/Connection/AbstractConnection.php&quot; #line: 155
  </code></pre>
  <p>Any help will be greatly appreciated!</p>