From 5a3d65ac61898e2481d1b3817fe73565834ef898 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 5 Dec 2011 22:06:23 +0900 Subject: [PATCH] send zips in 2.5MB increments --- anki/consts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/anki/consts.py b/anki/consts.py index b215ed3e8..c87bd744a 100644 --- a/anki/consts.py +++ b/anki/consts.py @@ -36,8 +36,7 @@ MEDIA_ADD = 0 MEDIA_REM = 1 # syncing vars -SYNC_ZIP_SIZE = 10*1024*1024 -CHUNK_SIZE = 65536 +SYNC_ZIP_SIZE = int(2.5*1024*1024) MIME_BOUNDARY = "Anki-sync-boundary" SYNC_URL = os.environ.get("SYNC_URL") or "https://ankiweb.net/sync/" SYNC_VER = 0