mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
silly me, we were overriding retries in the aqt monkeypatch
This commit is contained in:
parent
d6f9fb4ab0
commit
bab63de768
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ import anki
|
|||
HTTP_TIMEOUT = 90
|
||||
HTTP_PROXY = None
|
||||
|
||||
# badly named; means no retries, and doesn't affect ssl connections
|
||||
# badly named; means no retries
|
||||
httplib2.RETRIES = 1
|
||||
|
||||
try:
|
||||
|
|
|
@ -447,7 +447,7 @@ httplib.HTTPConnection.send = _incrementalSend
|
|||
|
||||
# receiving in httplib2
|
||||
def _conn_request(self, conn, request_uri, method, body, headers):
|
||||
for i in range(2):
|
||||
for i in range(httplib2.RETRIES):
|
||||
try:
|
||||
if conn.sock is None:
|
||||
conn.connect()
|
||||
|
|
Loading…
Reference in a new issue