Message28473
This occasionally shows up in a logged trace, when a
application crahes on ValueError on a
http(s)_response.read() :
(py2.3.5 - yet relevant httplib code is still the same
in current httplib)
.... \' File "socket.pyo", line 283,
in read\\n\', \' File "httplib.pyo", line 389, in
read\\n\', \' File "httplib.pyo", line 426, in
_read_chunked\\n\', \'ValueError: invalid literal for
int(): \\n\'] :::
its the line:
chunk_left = int(line, 16)
Don't know what this line is about. Yet, that should be
protected, as a http_response.read() should not fail
with ValueError, but only with
IOError/EnvironmentError, socket.error - otherwise
Error Exception handling becomes a random task.
-Robert
Side note regarding IO exception handling: See also FR
#1481036 (IOBaseError): why socket.error.__bases__ is
(<class exceptions.Exception at 0x011244E0>,) ?
|
|
Date |
User |
Action |
Args |
2007-08-23 14:39:58 | admin | link | issue1486335 messages |
2007-08-23 14:39:58 | admin | create | |
|