Race condition after async cancellations leads to degraded pool state #952
Unanswered
TheTechromancer
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
-
This bug has been haunting us recently. It happens after certain async cancellations, which cause the HTTP pool to get stuck in a degraded state, unable to issue requests. It looks like a resurfacing of this issue.
httpcore version:
1.0.5
python version:
3.12.4
Code to reproduce:
Output:
This is reproducible using the default python http server:
The bug applies to both asyncio and trio. However in trio it's much narrower. With asyncio it triggers almost immediately, while trio takes about 30 seconds.
Code to reproduce in trio:
Anyway sorry to bring this up again. I know these suck to troubleshoot. Let me know if there's anything else I can do to help in getting it fixed.
Beta Was this translation helpful? Give feedback.
All reactions