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
Execute with python3 httppost.py 127.0.0.1 8000 9000
Then try to make another request on a different connection such as with curl "http://127.0.0.1:8000/test" and notice that you do not get a response. Ctrl+C the httppost.py program and the curl will complete as expected.
If you run httppost.py with a shorter request body, such as python3 httppost.py 127.0.0.1 8000 100, then this issue doesn't happen.
The text was updated successfully, but these errors were encountered:
The gthread worker will block and try to read a request that wasn't sent on the wire in a specific scenario:
The worker will then be blocked on that connection until it is closed, and is not able to accept any requests.
Reproduction:
Create myapp.py:
Run with
gunicorn myapp:app --keep-alive 120 --worker-class gthread
Then create another Python file to open a connection and make a POST request
httppost.py
Execute with
python3 httppost.py 127.0.0.1 8000 9000
Then try to make another request on a different connection such as with
curl "http://127.0.0.1:8000/test"
and notice that you do not get a response. Ctrl+C the httppost.py program and the curl will complete as expected.If you run httppost.py with a shorter request body, such as
python3 httppost.py 127.0.0.1 8000 100
, then this issue doesn't happen.The text was updated successfully, but these errors were encountered: