Package: python2.7
Version: 2.7.3~rc1-1
Severity: important
I get randomly a different error than what should be expected on that
situation. The normal behaviour is to get urllib2.URLError. I often get
a direct socket.timeout error.
I could not reproduce this on python2.4, python2.6 and on a
hand-compiled python2.7.2 on Debian Squeeze.
Another reference of this bug:
https://bitbucket.org/tarek/distribute/issue/256/python27-throws-sockettimeout-directly
$ python
Python 2.7.3rc1 (default, Mar 10 2012, 00:01:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> import socket
>>> socket.setdefaulttimeout(1)
>>> urllib2.urlopen("http://trac.pocoo.org/repos/werkzeug/trunk")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 418, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error timed out>
>>> urllib2.urlopen("http://trac.pocoo.org/repos/werkzeug/trunk")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 418, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1180, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline()
File "/usr/lib/python2.7/socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
socket.timeout: timed out
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.1.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python2.7 depends on:
ii libbz2-1.0 1.0.6-1
ii libc6 2.13-27
ii libdb4.8 4.8.30-11
ii libexpat1 2.0.1-7.2
ii libgcc1 1:4.6.3-1
ii libncursesw5 5.9-4
ii libreadline6 6.2-8
ii libsqlite3-0 3.7.10-1
ii libtinfo5 5.9-4
ii mime-support 3.52-1
ii python2.7-minimal 2.7.3~rc1-1
python2.7 recommends no packages.
Versions of packages python2.7 suggests:
ii binutils 2.22-6
ii python2.7-doc 2.7.3~rc1-1
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]