This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author devloop
Recipients
Date 2006-08-09.15:00:08
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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 ?
History
Date User Action Args
2008-01-20 09:58:53adminlinkissue1537445 messages
2008-01-20 09:58:53admincreate