New submission from Péter Szabó pts...@gmail.com:
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
New submission from Péter Szabó pts...@gmail.com:
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._sslobj
New submission from Péter Szabó pts...@gmail.com:
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