~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 5247.2.9.

The smart server leaks one thread (daemonic) for each connection.

* bzrlib/tests/test_smart_transport.py:
(SmartTCPTests.start_server): Use stop_server for consistency.
(SmartTCPTests.stop_server): Rename from tearDownServer for
consistency.
(TestServerSocketUsage.test_server_closes_listening_sock_on_shutdown_after_request):
Keep track of the server URL explicitly.

* bzrlib/smart/server.py (SmartTCPServer.serve_conn):
Mark the origin of the leak.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: