set timeout_keep_alive

This commit is contained in:
TangJicheng 2023-07-11 17:32:04 +09:00 committed by GitHub
parent 10d4e4ace2
commit 14501f56aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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