[pypy-issue] [issue1568] Using socket.makefile from eventlet results in hangs
Armin Rigo
tracker at bugs.pypy.org
Sun Aug 4 09:37:04 CEST 2013
Armin Rigo <armin.rigo at gmail.com> added the comment:
One solution might be to change socket.py to remove the lines "if type(s) is
_realsocket". It would cleanly break any library that attempts to monkey-patch
sockets in non-official way, and point them to the direction of solving it for
pypy: they need to implement a reference counter and methods _drop() and
_reuse() on the class they're passing to _socketobject() or _fileobject(). This
can be made explicit with comments.
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1568>
________________________________________
More information about the pypy-issue
mailing list