title: Cassandra - DataSax PHP Driver - Timeout
body: <p>I'm having problems with timeout using the DataSax php driver for Cassandra.
  Whenever I execute a certain command it always throws this exception after 10s:</p>
  
  <pre><code>PHP Fatal error:  Uncaught exception 'Cassandra\Exception\TimeoutException' with message 'Request timed out'
  </code></pre>
  
  <p>My php code is like this:</p>
  
  <pre><code>$cluster   = Cassandra::cluster()-&gt;build();
  $session   = $cluster-&gt;connect("my_base");
  $statement = new Cassandra\SimpleStatement("SELECT COUNT(*) as c FROM my_table WHERE my_colunm = 1 AND my_colunm2 &gt;= '2015-01-01' ALLOW FILTERING")
  $result    = $session-&gt;execute($statement);
  $row = $result-&gt;first();
  </code></pre>
  
  <p>My settings in <strong>cassandra.yaml</strong> is:</p>
  
  <pre><code># How long the coordinator should wait for read operations to complete
  read_request_timeout_in_ms: 500000
  # How long the coordinator should wait for seq or index scans to complete
  range_request_timeout_in_ms: 1000000
  # How long the coordinator should wait for writes to complete
  write_request_timeout_in_ms: 2000
  # How long the coordinator should wait for counter writes to complete
  counter_write_request_timeout_in_ms: 50000
  # How long a coordinator should continue to retry a CAS operation
  # that contends with other proposals for the same row
  cas_contention_timeout_in_ms: 50000
  # How long the coordinator should wait for truncates to complete
  # (This can be much longer, because unless auto_snapshot is disabled
  # we need to flush first so we can snapshot before removing the data.)
  truncate_request_timeout_in_ms: 60000
  # The default timeout for other, miscellaneous operations
  request_timeout_in_ms: 1000000
  </code></pre>
  
  <p>I've already tried this:</p>
  
  <pre><code>$result    = $session-&gt;execute($statement,new Cassandra\ExecutionOptions([
          'timeout' =&gt; 120
      ])
  );
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>$cluster   = Cassandra::cluster()-&gt;withDefaultTimeout(120)-&gt;build();
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>set_time_limit(0)
  </code></pre>
  
  <p>And it always throws the TimeoutException after 10s..
  I'm using <strong>Cassandra 3.6</strong>
  Any idea?</p>