decrease timeout to 30; httplib2 retries for us

This commit is contained in:
Damien Elmes 2011-12-07 18:06:54 +09:00
parent 4b190c3586
commit 593e45a9bb
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ MIME_BOUNDARY = "Anki-sync-boundary"
SYNC_URL = os.environ.get("SYNC_URL") or "https://ankiweb.net/sync/" SYNC_URL = os.environ.get("SYNC_URL") or "https://ankiweb.net/sync/"
SYNC_VER = 0 SYNC_VER = 0
HTTP_CERTS = os.path.join(os.path.dirname(__file__), "ankiweb.certs") HTTP_CERTS = os.path.join(os.path.dirname(__file__), "ankiweb.certs")
HTTP_TIMEOUT = 60 HTTP_TIMEOUT = 30
# deck schema # deck schema
SCHEMA_VERSION = 1 SCHEMA_VERSION = 1

View file

@ -585,7 +585,7 @@ class MediaSyncer(object):
c = self.mediaSanity() c = self.mediaSanity()
if c != s: if c != s:
raise Exception("""\ raise Exception("""\
Sanity check failed. Please copy and paste the text below:\n%s\n%s""" % Media sanity check failed. Please copy and paste the text below:\n%s\n%s""" %
(c, s)) (c, s))
return "success" return "success"