1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

allow_reuse_address for test http server.

This commit is contained in:
Ryan Dahl 2018-08-23 20:03:45 -04:00
parent f43259e5ab
commit fde96a8e43

View file

@ -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()