diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-14 07:12:48 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-14 07:12:48 +0000 |
commit | 92a3236161099aca735c3f59f30859750d9e7452 (patch) | |
tree | ffc981e3fdd856dbc389af2e56f0d97d38ecaec1 /modules/api/api.py | |
parent | 9a3f35b028a8026291679c35e1df5b2aea327a1d (diff) | |
parent | 9893d09b4378d14c2a3ef370a5e02b906993ea86 (diff) | |
download | stable-diffusion-webui-gfx803-92a3236161099aca735c3f59f30859750d9e7452.tar.gz stable-diffusion-webui-gfx803-92a3236161099aca735c3f59f30859750d9e7452.tar.bz2 stable-diffusion-webui-gfx803-92a3236161099aca735c3f59f30859750d9e7452.zip |
Merge branch 'dev' into sdxl
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 3 |
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.") + |