aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/api.py
diff options
context:
space:
mode:
authorTangJicheng <tangjch15@gmail.com>2023-07-11 08:32:04 +0000
committerGitHub <noreply@github.com>2023-07-11 08:32:04 +0000
commit14501f56aaf3c97fb2c38633350dc747b9651f43 (patch)
tree6e1e5a08dbdc8d6b45e607e01e2f65880f6d94ab /modules/api/api.py
parent10d4e4ace2d243c020e6a83060c938dee7d8c02d (diff)
downloadstable-diffusion-webui-gfx803-14501f56aaf3c97fb2c38633350dc747b9651f43.tar.gz
stable-diffusion-webui-gfx803-14501f56aaf3c97fb2c38633350dc747b9651f43.tar.bz2
stable-diffusion-webui-gfx803-14501f56aaf3c97fb2c38633350dc747b9651f43.zip
set timeout_keep_alive
Diffstat (limited to 'modules/api/api.py')
-rw-r--r--modules/api/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 7f7e3a9b..4ea5d825 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -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)