Open MarkStoutjesdijk opened 2 months ago
Thanks! I didn't know about this one. This is indeed because ssl library changes in latest Python.
I was looking at the connect(..) here -- unfortunately, it looks like it hasn't been written in a manner that allows for SSL context to overridden by child classes, without copying the entire function.
That being said, we can perhaps try having ssl.wrap_socket
point to something else ( HACKY + UNTESTED):
# Before any library imports that depends on ssl..
ssl.wrap_socket = ssl.SSLContext().wrap_socket
.. can you please confirm if this works for you? If so, I'll try incorporating this in this library..
Hi,
Using secure connection, I am getting an error:
AttributeError: module 'ssl' has no attribute 'wrap_socket'
I suspect it is due to a change in Python -- see https://github.com/eventlet/eventlet/issues/795. It would be great if you could take a look at this!