Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 54d1d71

Browse files
committed
Tweak server timeouts
1 parent 490b9f5 commit 54d1d71

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

server.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,11 @@ async def ping():
4242
for custom_module_setup in get_custom_modules():
4343
custom_module_setup(app)
4444

45-
uvicorn.run(app, host=args.host, port=args.port, timeout_keep_alive=999999)
45+
uvicorn.run(
46+
app,
47+
host=args.host,
48+
port=args.port,
49+
timeout_keep_alive=sys.maxsize - 1,
50+
timeout_graceful_shutdown=None,
51+
ws_ping_timeout=None,
52+
)

0 commit comments

Comments
 (0)