From fde96a8e436fe0b63e34aa398b1765739f6e212d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 23 Aug 2018 20:03:45 -0400 Subject: [PATCH] allow_reuse_address for test http server. --- tools/http_server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/http_server.py b/tools/http_server.py index a3e6adf44e..f8c77f08b2 100755 --- a/tools/http_server.py +++ b/tools/http_server.py @@ -14,6 +14,7 @@ PORT = 4545 def serve_forever(): os.chdir(root_path) # Hopefully the main thread doesn't also chdir. Handler = SimpleHTTPServer.SimpleHTTPRequestHandler + SocketServer.TCPServer.allow_reuse_address = True httpd = SocketServer.TCPServer(("", PORT), Handler) print "Deno test server http://localhost:%d/" % PORT httpd.serve_forever()