From: Dirk V. <dv...@2s...> - 2009-01-05 15:17:07
|
Hello, the following request will never timeout (despite setdefaulttimeout): ==cut import socket import urllib2 socket.setdefaulttimeout(2) f = urllib2.urlopen("http://damn.slow.com/whatever") print f.read() ==cut This neither works for 2.2.1 (i got the last socket.py because of http://bugs.jython.org/issue1154) nor 2.5 (from svn): Is this supposed to work? Regards, Dirk |