Message60967
Hello !
In a code of mine if have the lines :
try:
req = urllib2.Request(url)
u = urllib2.urlopen(req)
data=u.read()
except urllib2.URLError,err:
// error handling here
The urllib2.URLError normally catchs the
socket.timeout but someone send me a bug report of a
tiemout error :
File "/usr/lib/python2.4/socket.py", line 285, in read
data = self._sock.recv(recv_size)
File "/usr/lib/python2.4/httplib.py", line 460, in read
return self._read_chunked(amt)
File "/usr/lib/python2.4/httplib.py", line 495, in
_read_chunked
line = self.fp.readline()
File "/usr/lib/python2.4/socket.py", line 325, in
readline
data = recv(1)
socket.timeout: timed out
Is it a bug with httplib and 'Content-Encoding:
chunked' header ? |
|
Date |
User |
Action |
Args |
2008-01-20 09:58:53 | admin | link | issue1537445 messages |
2008-01-20 09:58:53 | admin | create | |
|