silly me, we were overriding retries in the aqt monkeypatch

This commit is contained in:
Damien Elmes 2013-10-20 10:25:25 +09:00
parent d6f9fb4ab0
commit bab63de768
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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()