Author tholzer
Recipients flox, gregory.p.smith, neologix, pitrou, tholzer, vstinner
Date 2014-05-20.04:09:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400558946.93.0.920568091847.issue20611@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a reproducible test case:

import threading
import signal
import os
import httplib

def killer():
    while 1:
        os.kill(os.getpid(), signal.SIGINT)

def go():
    signal.signal(signal.SIGINT, lambda x,y: None)
    thread = threading.Thread(target=killer)
    thread.start()
    while 1:
        connection = httplib.HTTPConnection("localhost:80")
        connection.connect()
        connection.close()
        
if __name__ == '__main__':
    go()

Which gives:

Traceback (most recent call last):
  File "./repro1.py", line 22, in <module>
    go()
  File "./repro1.py", line 18, in go
    connection.connect()
  File ".../lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File ".../lib/python2.7/socket.py", line 571, in create_connection
    raise err
socket.error:
History
Date User Action Args
2014-05-20 04:09:06tholzersetrecipients: + tholzer, gregory.p.smith, pitrou, vstinner, flox, neologix
2014-05-20 04:09:06tholzersetmessageid: <1400558946.93.0.920568091847.issue20611@psf.upfronthosting.co.za>
2014-05-20 04:09:06tholzerlinkissue20611 messages
2014-05-20 04:09:06tholzercreate