diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-25 12:13:50 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-25 12:13:50 (GMT) |
commit | 6e132254a911cf32fe7a8b2f72c163afbd99c14a (patch) | |
tree | 98605f0afb36cfb694c8a62e4c0a8777a8462c71 /Lib/xmlrpc | |
parent | f799ca82a068a2cc86e249a8bad377e5d3fa9dd9 (diff) | |
parent | eae3336e425a718d6c17ee1247236a62080bac7f (diff) | |
download | cpython-6e132254a911cf32fe7a8b2f72c163afbd99c14a.zip cpython-6e132254a911cf32fe7a8b2f72c163afbd99c14a.tar.gz cpython-6e132254a911cf32fe7a8b2f72c163afbd99c14a.tar.bz2 |
Issue #26402: Merge XML-RPC client fix from 3.5
Diffstat (limited to 'Lib/xmlrpc')
-rw-r--r-- | Lib/xmlrpc/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py index 07a4f03..4d994d7 100644 --- a/Lib/xmlrpc/client.py +++ b/Lib/xmlrpc/client.py @@ -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 |