You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no similar issues or pull requests for this yet.
I discussed this idea on the community chat and feedback is positive. (I brought this up twice in chat but only received one response)
Is your feature related to a problem? Please describe.
I want to time out long-running requests to prevent a DDOS attack from happening.
Describe the solution you would like.
A timeout option to end requests after X seconds.
Describe alternatives you considered
Using Gunicorn, but gunicorn is not needed as we already have a process management system in the form of kubernetes. Also we had an issue with using gunicorn.
Using Nginx, but if nginx ends the connection the request might still keep on running? (Not sure about this one)
Timing out the connection in our Django codebase. This can probably be done but it would be nice if it was a default feature of uvicorn so everyone else could easily set it as well.
Additional context
There is precedent for this feature as Uwsgi had this option.
The text was updated successfully, but these errors were encountered:
caleb15
changed the title
Timeout option
Feature request: Timeout option
Dec 2, 2021
Checklist
Is your feature related to a problem? Please describe.
I want to time out long-running requests to prevent a DDOS attack from happening.
Describe the solution you would like.
A timeout option to end requests after X seconds.
Describe alternatives you considered
Additional context
There is precedent for this feature as Uwsgi had this option.
The text was updated successfully, but these errors were encountered: