[issue9032] xmlrpc: Transport.request() should also catch socket.error(EPIPE)

STINNER Victor report at bugs.python.org
Sat Jun 19 00:54:23 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

See also r70643 (from issue #5542): "Remove special logic that closes HTTPConnection socket on EPIPE.

If the socket is closed, the client has no chance to read the response
from the server.  EPIPE means that it isn't possible to write more
data from the socket, but not that it is impossible to read."

This commit didn't updated the following comment. I think that it should be fixed (maybe removed?) because the socket is no more closed on broken pipe error.

# send the data to the server. if we get a broken pipe, then close
# the socket. we want to reconnect when somebody tries to send again.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9032>
_______________________________________


More information about the Python-bugs-list mailing list