mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #26402: Merge XML-RPC client fix from 3.5
This commit is contained in:
commit
6e132254a9
3 changed files with 44 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue