From bab63de76876b094d974f74c6fce0dc995930354 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 20 Oct 2013 10:25:25 +0900 Subject: [PATCH] silly me, we were overriding retries in the aqt monkeypatch --- anki/sync.py | 2 +- aqt/sync.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()