fXmlRpc\Integration\AbstractIntegrationTest::pollWait PHP Method

pollWait() private static method

private static pollWait ( )
    private static function pollWait()
    {
        $parts = parse_url(static::$endpoint);
        foreach (FibonacciFactory::sequence(50000, 10000, 10) as $offset => $sleepTime) {
            usleep($sleepTime);
            $socket = @fsockopen($parts['host'], $parts['port'], $errorNumber, $errorString, 1);
            if ($socket !== false) {
                fclose($socket);
                return;
            }
        }
    }