Deque mutated during iteration, KeyError and others raised on HTTP/2 #3190
Unanswered
robpats
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
-
I downloaded 4000 URLs with 8 threads in a httpx.Client(http2=True, timeout=30, follow_redirects=True) instance.
The following exceptions are raised on HTTP/2 but not HTTP/1.1.
They are often reproducible in my environment (Windows 10, Python-3.12.3, httpx-0.27.0, httpcore-1.0.5, hpack-4.0.0, h11-0.14.0, h2-4.1.0).
"deque mutated during iteration" should be a bug due to race condition. I don't have enough knowledge to guess the rest.
Is it safe to send the same request again or send another request using the same Client when the above exceptions are raised?
Some trackbacks
Beta Was this translation helpful? Give feedback.
All reactions