summaryrefslogtreecommitdiff
path: root/tools/http_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/http_server.py')
-rwxr-xr-xtools/http_server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/http_server.py b/tools/http_server.py
index a3e6adf44..f8c77f08b 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()