Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Return ``False`` if there has been an error communicating with the
server, else ``True``.

This method attempts to check the status of the server with minimal I/O.
The current thread / greenlet retrieves a socket from the pool (its
request socket if it's in a request, or a random idle socket if it's not
in a request) and checks whether calling `select`_ on it raises an
error. If there are currently no idle sockets, :meth:`alive` will
attempt to actually connect to the server.

src/t/e/testinstances-0.1.1/testinstances/mongo_instance.py   testinstances(Download)
                conn = pymongo.MongoClient(port=self.port)
                if conn.alive():
                    self.conn = conn