Unverified Commit 14501f56 authored by TangJicheng's avatar TangJicheng Committed by GitHub
Browse files

set timeout_keep_alive

parent 10d4e4ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -715,4 +715,4 @@ class Api:

    def launch(self, server_name, port):
        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)