socket connection retry mechanism doesn't work in some situations · Issue #186 · httplib2/httplib2 · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The global variable RETRIES is hardcoded into 2 currently. So the following code will never be executed since i always greater or equal than RETRIES - 1
Wouldn't it be better to remove "- 1" from the lines pointed in the bug report, so that there is "i < RETRIES"?
There are still people using that version and Python 2.
monluk
added a commit
to monluk/httplib2
that referenced
this issue
May 23, 2022
It looks like the socket connection retry mechanism doesn't work in some situations.
The global variable
RETRIES
is hardcoded into 2 currently. So the following code will never be executed sincei
always greater or equal thanRETRIES - 1
Maybe httplib2 allow user to change the value of
httplib2.RETRIES
. then above code block is reasonable.But the second place:
The
i
always greater than 0, so the following code block will never be executed.The text was updated successfully, but these errors were encountered: