From ed5245cdcfa003f202ae5b8be531fd8a00313263 Mon Sep 17 00:00:00 2001 From: Sriram-Nambiar Date: Thu, 15 Oct 2026 17:36:16 +0530 Subject: [PATCH] Make save_large_file robust to transient errors with progress-based retries (#348) --- CHANGELOG.md | 1 + src/zimscraperlib/download.py | 121 +++++++++++++++++----- tests/download/test_download.py | 178 +++++++++++++++++++++++++++++++- 3 files changed, 273 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1de7b951..c12daab2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Make `save_large_file` robust against transient HTTP and host/connection errors by streaming with range-based resume and resetting retries on progress (#348) - Carry a script's top-level `const`, `let` and `class` declarations across the wombat block, so other scripts on the page can still see them (#329) - Keep a rewritten `