Do timeouts work at all with uvicorn ?? #2578
Unanswered
mikehagerty
asked this question in
Q&A
Replies: 1 comment
-
@mikehagerty did you find the root cause? workaround to this problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Googling around, some people say to set the timeouts like this:
However, the (incredibly sparse) documentation for uvicorn only mentions:
--timeout-keep-alive [Default 5]
--timeout-graceful-shutdown
Source: https://www.uvicorn.org/settings/#timeouts
I am starting FastAPI/uvicorn from my app:
However, when trying to serve a large file (>40 Mb), the server is timing out after
exactly 60 seconds. The browser reports this as a Proxy Error.
I tried adding "timeout=300" in my uvicorn.run() call but get an error that this param
is not recognized.
My questions are:
Thanks for any info on this!
I've tested this for:
python=3.11
uvicorn=0.32.1 and 0.34.0
Chrome + Safari browser
Beta Was this translation helpful? Give feedback.
All reactions