Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
43535d96
Commit
43535d96
authored
Jul 03, 2009
by
Kristján Valur Jónsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http://bugs.python.org/issue6267
Incorrect exception handling for xmlrpclient retry
parent
c2b71889
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/xmlrpc/client.py
Lib/xmlrpc/client.py
+5
-5
No files found.
Lib/xmlrpc/client.py
View file @
43535d96
...
...
@@ -1138,11 +1138,11 @@ class Transport:
for
i
in
(
0
,
1
):
try
:
return
self
.
single_request
(
host
,
handler
,
request_body
,
verbose
)
except
(
socket
.
error
,
http
.
client
.
HTTPException
)
as
e
:
retry
=
(
errno
.
ECONNRESET
,
errno
.
ECONNABORTED
,
http
.
client
.
BadStatusLine
)
#close after we sent request
if
i
or
e
[
0
]
not
in
retry
:
except
socket
.
error
as
e
:
if
i
or
e
.
errno
not
in
(
errno
.
ECONNRESET
,
errno
.
ECONNABORTED
):
raise
except
http
.
client
.
BadStatusLine
:
#close after we sent request
if
i
:
raise
def
single_request
(
self
,
host
,
handler
,
request_body
,
verbose
=
0
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment