Issue #26402: Merge XML-RPC client fix from 3.5

This commit is contained in:
Martin Panter 2016-02-25 12:13:50 +00:00
commit 6e132254a9
3 changed files with 44 additions and 3 deletions

View file

@ -1129,13 +1129,13 @@ class Transport:
for i in (0, 1):
try:
return self.single_request(host, handler, request_body, verbose)
except http.client.RemoteDisconnected:
if i:
raise
except OSError as e:
if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED,
errno.EPIPE):
raise
except http.client.RemoteDisconnected:
if i:
raise
def single_request(self, host, handler, request_body, verbose=False):
# issue XML-RPC request