Commit 14501f56 authored by TangJicheng's avatar TangJicheng Committed by GitHub

set timeout_keep_alive

parent 10d4e4ac
...@@ -715,4 +715,4 @@ class Api: ...@@ -715,4 +715,4 @@ class Api:
def launch(self, server_name, port): def launch(self, server_name, port):
self.app.include_router(self.router) self.app.include_router(self.router)
uvicorn.run(self.app, host=server_name, port=port, timeout_keep_alive=0) uvicorn.run(self.app, host=server_name, port=port, timeout_keep_alive=shared.cmd_opts.timeout_keep_alive)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment