decrease chunk size to 4MB, fix more potential breakages

This commit is contained in:
2026-09-02 20:18:42 +02:00
parent c038316461
commit 39593d470d
4 changed files with 78 additions and 29 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ const PARTS_DIR = 'parts';
// backoff below tolerates roughly 8 minutes of outage before giving up
const MAX_ATTEMPTS = 8;
const CHUNK_SIZE = 8 * 1024 * 1024;
const CHUNK_SIZE = 4 * 1024 * 1024;
// 60s as the limit for downloading one chunk is a reasonable guess
// as the intent is to catch socket breakage during cellular network changes for example