diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-08-23 20:03:45 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-27 17:51:24 -0400 |
commit | fde96a8e436fe0b63e34aa398b1765739f6e212d (patch) | |
tree | d4b90e239b6a96d85d0fa366763f7c00647c5eac /tools/http_server.py | |
parent | f43259e5abdbf8f80418382349da79b8426dff27 (diff) |
allow_reuse_address for test http server.
Diffstat (limited to 'tools/http_server.py')
-rwxr-xr-x | tools/http_server.py | 1 |
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() |