~vila/bzr/405745-http-hangs

Viewing all changes in revision 4732.

  • Committer: Vincent Ladeuil
  • Date: 2009-10-07 10:24:04 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20091007102404-tqyhafwp5ur19kz0
Don't use shutdown() to stop http servers.

* bzrlib/tests/http_server.py:
(TestingHTTPServerMixin.tearDown): Avoid using shutdown() to
properly stop the listening server. Use a real connexion instead
relying on callers to ensure the server will not listen anymore
after that last connection.
(HttpServer._http_start): Once we stop running, we still need to
close the listening socket.
(HttpServer.tearDown): Join the server thread to avoid leaks.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: