提交 fde96a8e 编写于 作者: R Ryan Dahl

allow_reuse_address for test http server.

上级 f43259e5
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册