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
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
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