[pypy-issue] [issue1568] Using socket.makefile from eventlet results in hangs

Armin Rigo tracker at bugs.pypy.org
Tue Aug 6 11:35:16 CEST 2013

Armin Rigo <armin.rigo at gmail.com> added the comment:

The example passes now with two changes:

- added c.close()

- tweaked the method GreenSocket.makefile() in eventlet to not call dup() (which
leaks) and to pass an object that is a raw socket (as opposed to a
_socketobject).  The tweaked is here:

    def makefile(self, *args, **kw):
        return _fileobject(self.fd._sock, *args, **kw)

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list