b.t.t.TestingSmartServer(TestingThreadingTCPServer, server.SmartTCPServer) : class documentation

Part of bzrlib.tests.test_server View In Hierarchy

No class docstring
Method __init__ Construct a new server.
Method serve Undocumented
Method get_url Return the url of the server

Inherited from TestingThreadingTCPServer:

Method get_request Get the request and client address from the socket.
Method process_request_thread Undocumented
Method process_request Start a new thread to process the request.
Method shutdown_client Undocumented
Method set_ignored_exceptions Undocumented
Method _pending_exception Raise server uncaught exception.

Inherited from TestingTCPServerMixin (via TestingThreadingTCPServer):

Method server_bind Undocumented
Method handle_request Handle one request.
Method verify_request Verify the request.
Method handle_error Undocumented
Method ignored_exceptions_during_shutdown Undocumented
Method stop_client_connections Undocumented
Method shutdown_socket Properly shutdown a socket.

Inherited from SmartTCPServer:

Method start_server Create the server listening socket.
Method run_server_started_hooks Undocumented
Method run_server_stopped_hooks Undocumented
Method serve_conn Undocumented
Method start_background_thread Undocumented
Method stop_background_thread Undocumented
Method _backing_urls Undocumented
Method _stop_gracefully Undocumented
Method _wait_for_clients_to_disconnect Undocumented
Method _make_handler Undocumented
Method _poll_active_connections Check to see if any active connections have finished.
def __init__(self, server_address, request_handler_class, backing_transport, root_client_path):
Construct a new server.

To actually start it running, call either start_background_thread or serve.

Parametersbacking_transportThe transport to serve.
root_client_pathThe client path that will correspond to root of backing_transport.
client_timeoutSee SmartServerSocketStreamMedium's timeout parameter.
def serve(self):
Undocumented
def get_url(self):
Return the url of the server
API Documentation for Bazaar, generated by pydoctor at 2022-01-21 00:18:58.