The --limit-concurrency
seems to be off by one (specifying 1 means 0; specifying 2, means 1)
#2570
Unanswered
anton-daneyko-ultramarin
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
--limit-concurrency
seems to be off by one (specifying 1 means 0; specifying 2, means 1). Here's a repro:Then run it with
uvicorn sleep_app_handler:app --host 127.0.0.1 --port 8000 --limit-concurrency 1
Observe that
curl http://127.0.0.1:8000/sleep/1
always returns HTTP 503. I checked different--limit-concurrency
and I see off by one behavior. I see this has been already pointed out (on Dec 29, 2023) in #2074 (comment).Beta Was this translation helpful? Give feedback.
All reactions