Gevent compatability issue
Hello, I'm trying to dig into the following gevent compatibility issue, which is new in PyPy3.7. The following code will hang forever:
from gevent import monkey monkey.patch_all() import threading import socket def get(): socket.gethostbyname('www.python.org') t = threading.Thread(target=get) t.start() t.join()
In PyPy3.6, Cpython, without gevent, or even with the equivalent eventlet patch it works fine:
from eventlet import monkey_patch monkey_patch()
I've opened a sister issue for gevent https://github.com/gevent/gevent/issues/1785 - it's not obvious to me where the issue lies.