Author cjohns
Recipients
Date 2005-06-29.11:39:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 14:32:43adminlinkissue1229646 messages
2007-08-23 14:32:43admincreate