Part of bzrlib.tests.test_server View In Hierarchy
Known subclasses: bzrlib.tests.test_server.TestingTCPServer, bzrlib.tests.test_server.TestingThreadingTCPServer
Tests are connecting from the main thread, the server has to be run in a separate thread.
Method | __init__ | Undocumented |
Method | server_bind | Undocumented |
Method | serve | Undocumented |
Method | handle_request | Handle one request. |
Method | get_request | Undocumented |
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. |
Method | set_ignored_exceptions | Undocumented |
Method | _pending_exception | Raise server uncaught exception. |
The python version swallows some socket exceptions and we don't use timeout, so we override it to better control the server behavior.
Return True if we should proceed with this request, False if we should not even touch a single byte in the socket ! This is useful when we stop the server with a dummy last connection.
This should be called only when no other thread is trying to use the socket.
Daughter classes can override this if they use daughter threads.