diff --git a/anki/sync.py b/anki/sync.py index d85306338..9ae76df61 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -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: diff --git a/aqt/sync.py b/aqt/sync.py index 0a764b8fa..0ef164322 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -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()