Large consecutive POST requests with small keep-alive lead to connection aborted #2021
Unanswered
wb7777
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
-
After making a few POST requests with large body and small keep-alive, one of the requests ends with the connection aborted.
The server said thats all right, but connection is aborted
It seems similar to #1345, but different.
uvicorn: 0.18.3
How to reproduce:
Server side:
Uvicorn start:
uvicorn --timeout-keep-alive 1 test:app
Client side:
After several iterations, one of the exceptions occurs:
and some another exceptions.
If we increase keep-alive timeout, the frequency of error is reduced.
If we do not close transport at keep-alive timeout:
error disappears
Beta Was this translation helpful? Give feedback.
All reactions