Rev 2826: Fix #140055 by properly closing the http test servers. in file:///v/home/vila/src/bugs/140055/

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Sep 17 15:44:55 BST 2007


At file:///v/home/vila/src/bugs/140055/

------------------------------------------------------------
revno: 2826
revision-id: v.ladeuil+lp at free.fr-20070917144453-o2ryi040ccqt1t85
parent: pqm at pqm.ubuntu.com-20070917005035-cshdkpzbj63id1uw
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 140055
timestamp: Mon 2007-09-17 16:44:53 +0200
message:
  Fix #140055 by properly closing the http test servers.
  
  * bzrlib/tests/HttpServer.py:
  (HttpServer.tearDown): Closing server will close the listening
  socket.
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/tests/HttpServer.py     httpserver.py-20061012142527-m1yxdj1xazsf8d7s-1
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2007-09-16 19:29:00 +0000
+++ b/NEWS	2007-09-17 14:44:53 +0000
@@ -39,6 +39,10 @@
      longer throws away the profiling data if this command is run with
      ``--lsprof-file callgrind.out.ci`` say. (Ian Clatworthy)
 
+   * HttpServer needs to be closed properly or a listening socket will remain
+     opened.
+     (Vincent Ladeuil, #140055)
+
   API BREAKS:
 
    * The ``VersionedFile`` interface now allows content checks to be bypassed

=== modified file 'bzrlib/tests/HttpServer.py'
--- a/bzrlib/tests/HttpServer.py	2007-04-21 21:31:32 +0000
+++ b/bzrlib/tests/HttpServer.py	2007-09-17 14:44:53 +0000
@@ -380,6 +380,7 @@
 
     def tearDown(self):
         """See bzrlib.transport.Server.tearDown."""
+        self._httpd.server_close()
         self._http_running = False
         self._http_thread.join()
 



More information about the bazaar-commits mailing list