aboutsummaryrefslogtreecommitdiff
path: root/modules/api/api.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-14 10:12:48 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-14 10:12:48 +0300
commit92a3236161099aca735c3f59f30859750d9e7452 (patch)
treeffc981e3fdd856dbc389af2e56f0d97d38ecaec1 /modules/api/api.py
parent9a3f35b028a8026291679c35e1df5b2aea327a1d (diff)
parent9893d09b4378d14c2a3ef370a5e02b906993ea86 (diff)
Merge branch 'dev' into sdxl
Diffstat (limited to 'modules/api/api.py')
-rw-r--r--modules/api/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 1804a383..11045292 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -719,7 +719,7 @@ 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)
def kill_webui(self):
restart.stop_program()
@@ -732,3 +732,4 @@ class Api:
def stop_webui(request):
shared.state.server_command = "stop"
return Response("Stopping.")
+