httpx 0.19.0 with eventlet causes RecursionError #1873
Unanswered
bobh66
asked this question in
Potential Issue
Replies: 2 comments
-
I opened eventlet/eventlet#726 and pushed a PR to resolve this in eventlet |
Beta Was this translation helpful? Give feedback.
0 replies
-
The eventlet patch eventlet/eventlet#727 is merged and should be included in the next release |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is really an eventlet issue, which I will document in that repo, but I wanted to mention it here in case anyone sees the same problem.
When running httpx==0.19.0 with eventlet, the eventlet monkey_patch() replaces the SSLContext object with a GreenSSLContext object which does not handle setting the minimum TLS version correctly and results in RecursionErrors when creating an httpx Client.
For example, if you run:
with httpx==0.19.0 it results in:
because the GreenSSLContext does not handle the minimum_version property of SSLContext properly.
It works fine with 0.18.2
I will open an issue with eventlet, they have the same problem with other SSLContext properties, but I wanted to make this info available here so others don't have to spend the time debugging.
Beta Was this translation helpful? Give feedback.
All reactions