Message4000

Author amak
Recipients amak
Date 2009-01-05.19:32:01
SpamBayes Score 0.0007111369
Marked as misclassified No
Message-id <1231183922.0.0.082877174023.issue1218@psf.upfronthosting.co.za>
In-reply-to
Content
Socket timeouts are not honoured when the timeouts is set through
socket.setdefaulttimeout.

This code illustrates

######
import socket
import urllib2

socket.setdefaulttimeout(1.0)
print "Connecting ..."
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect( ("192.168.192.168", 80) )
print "Never reached"
######

This means that modules and functions which use sockets, such as
urllib.urlopen, will fail to correctly timeout.
History
Date User Action Args
2009-01-05 19:32:02amaksetrecipients: + amak
2009-01-05 19:32:02amaksetmessageid: <1231183922.0.0.082877174023.issue1218@psf.upfronthosting.co.za>
2009-01-05 19:32:01amaklinkissue1218 messages
2009-01-05 19:32:01amakcreate