Set HTTPServer class variable allow_reuse_address to 1, so restarting
the server after it died doesn't require a wait period.
diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py
index 10a706e..ea5095a 100644
--- a/Lib/BaseHTTPServer.py
+++ b/Lib/BaseHTTPServer.py
@@ -87,6 +87,8 @@
class HTTPServer(SocketServer.TCPServer):
+ allow_reuse_address = 1 # Seems to make sense in testing environment
+
def server_bind(self):
"""Override server_bind to store the server name."""
SocketServer.TCPServer.server_bind(self)