Message4000
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. |
|
Date |
User |
Action |
Args |
2009-01-05 19:32:02 | amak | set | recipients:
+ amak |
2009-01-05 19:32:02 | amak | set | messageid: <1231183922.0.0.082877174023.issue1218@psf.upfronthosting.co.za> |
2009-01-05 19:32:01 | amak | link | issue1218 messages |
2009-01-05 19:32:01 | amak | create | |
|