src/M6Web/Bundle/ElasticsearchBundle/Elasticsearch/ConnectionPool/StaticAliveNoPingConnectionPool.php
protected function readyToRevive(Connection $connection)
    {
        $timeout = min(
            $this->pingTimeout * pow(2, $connection->getPingFailures()),
            $this->maxPingTimeout
        );

        if ($connection->getLastPing() + $timeout < time()) {
            return true;
        } else {
            return false;
        }
    }
protected function readyToRevive(Connection $connection)
    {
        $timeout = min(
            $this->pingTimeout * pow(2, $connection->getPingFailures()),
            $this->maxPingTimeout
        );

        if ($connection->getLastPing() + $timeout < time()) {
            return true;
        } else {
            return false;
        }
    }
protected function readyToRevive ( Connection $ connection ) { $ timeout = min ( $ this -> pingTimeout * pow ( 2 , $ connection -> getPingFailures ( ) ) , $ this -> maxPingTimeout ) ; if ( $ connection -> getLastPing ( ) + $ timeout < time ( ) ) { return true ; } else { return false ; } }
> Same as parent private method.

@param Connection $connection

@return bool
> Same as parent private method .