

def wait_for_startup(self):
    listening = False
    while (not listening):
        try:
            socket.create_connection((self._http_ip(), self._http_port()), 1.0)
        except IOError:
            pass
        else:
            listening = True

dataset/ETHPy150Open basho/riak-python-client/riak/test_server.py TestServer.wait_for_startup/original