This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JelteF
Recipients JelteF
Date 2016-02-21.16:19:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456071553.56.0.478362229137.issue26402@psf.upfronthosting.co.za>
In-reply-to
Content
A short look through the stacktrace actually seemed to have gotten me to the issue. It is in the xmlrpc.client library in this piece of code:

         for i in (0, 1):
             try:
                 return self.single_request(host, handler, request_body, verbose)
             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

As can be seen http.client.RemoteDisconnected error is caught after the OSError one. However http.client.RemoteDisconnected is a subclass of OSError since it's a subclass of ConnectionResetError: https://docs.python.org/3/library/http.client.html#http.client.RemoteDisconnected

A simple fix which seems to work for me is switching the two except branches as I did in the attached patch.
History
Date User Action Args
2016-02-21 16:19:13JelteFsetrecipients: + JelteF
2016-02-21 16:19:13JelteFsetmessageid: <1456071553.56.0.478362229137.issue26402@psf.upfronthosting.co.za>
2016-02-21 16:19:13JelteFlinkissue26402 messages
2016-02-21 16:19:13JelteFcreate