Explicitly close the server socket.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 29 Jan 2006 19:55:18 +0000 (19:55 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 29 Jan 2006 19:55:18 +0000 (19:55 +0000)
Lib/test/test_logging.py

index 5f01247e16b1d7308384265c790695662a6965f7..54d17a3f013829498af3deaa96843bae66d4282a 100644 (file)
@@ -109,6 +109,8 @@ class LogRecordSocketReceiver(ThreadingTCPServer):
             abort = self.abort
         #notify the main thread that we're about to exit
         socketDataProcessed.set()
+        # close the listen socket
+        self.server_close()
 
     def process_request(self, request, client_address):
         #import threading