Message25676
The httplib does not seem to handle error codes cleanly
or in a portable way. The socket could return a
ECONNRESET and does on the RTEMS platform. Also value
32 is normally EPIPE, but ECONNRESET is different so
the Python errno should be used.
[please excuse the manual diff :-)]
line 657:
< if v[0] == 32: # Broken pipe
line 657:
> if v[0] == errno.EPIPE or v[0] ==
errno.ECONNRESET:
line 803:
> if v[0] != 32 or not self.auto_open:
line 803:
> if (v[0] != errno.EPIPE and v[0] !=
errno.ECONNRESET) or not self.auto_open:
I can provide a patch if this change make sense. |
|
Date |
User |
Action |
Args |
2007-08-23 14:32:43 | admin | link | issue1229646 messages |
2007-08-23 14:32:43 | admin | create | |
|