[issue7943] Memory leak due to circular references in ssl.SSLSocket

2010-02-16 Thread Péter Szabó
New submission from Péter Szabó : Here is how to reproduce the leak in Python 2.6.4 and Python 2.7: import gc import socket import ssl sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) gc.disable() gc.collect() count0 = gc.get_count()[0] for i in xrange(1000

[issue7927] SSL socket is not closed properly

2010-02-14 Thread Péter Szabó
New submission from Péter Szabó : Here is how to reproduce: import socket import ssl sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sslsock = ssl.SSLSocket(sock) assert sslsock._sslobj is None sslsock.connect(('www.gmail.com', 443)) assert isinstance(sslsock._sslo

[issue5315] signal handler never gets called

2009-02-19 Thread Péter Szabó
New submission from Péter Szabó : According to http://docs.python.org/dev/library/signal.html , if I set up a signal handler in the main thread, and then have the signal delivered to the process, then the signal handler will be called in the main thread. The attached Python script I've wr