1. Pypy
  2. Untitled project
  3. pypy

Commits

Alex Gaynor  committed 963c6d6

Fix for SSLSocket.makefile()

Test program:

pypy -c "import socket, ssl; s = ssl.wrap_socket(socket.create_connection(('pypi.python.org', 443))); s.makefile().close(); print s.fileno()"

  • Participants
  • Parent commits ccb1767
  • Branches default

Comments (0)

Files changed (1)

File lib-python/2.7/socket.py

View file
             s = self._sock
             self._sock = None
             if s is not None:
-                s._drop()
                 if self._close:
                     s.close()
+                else:
+                    s._drop()
 
     def __del__(self):
         try: