Lines Matching refs:Client
20 # Extra timeout to use on the client side; limits network communication time.
23 class Client(object):
26 The Client class enables clients to communicate with a running container
33 client = Client(pool_address, timeout)
34 print(client.get_status())
35 client.close()
40 with Client.connect(pool_address, timeout) as client:
41 print(client.get_status())
45 """Initializes a new Client object.
65 """A ContextManager for Client objects.
70 @return: A Client connected to the domain socket on the given address.
77 client = Client(address, timeout)
79 yield client
81 client.close()
85 """Closes the client connection."""
130 """Factory class for making client connections with a timeout.
149 """Instantiates a connection.Client."""
152 self._client = connection.Client(self._address)
159 """Attempts to create a connection.Client with a timeout.
166 @return: A connection.Client connected using the address that was
190 'Test client failed to connect after %s seconds.', i)
192 raise socket.timeout('Test client timed out waiting for connection.')