4 Commits
Author SHA1 Message Date
HaydenandXiaoJiang0208 d12cb25710 Fix download resume when the server ignores Range (#230)
A 200 answer to a Range request was appended onto the partial file, so the
temp file grew past the real resource and the next resume asked for a range
beyond its end - the 416 from #210. Read the total from content-range on 206,
and replace rather than append when the response is a full 200.

Also recover a temp file that is already bigger than the resource instead of
asking for an out-of-bounds range, so users currently stuck on 416 get fixed
without deleting the file by hand.

Worker: close the event loop, and drop the task id from running_tasks even
when the coroutine raised - a failed task used to block its own re-submit
forever.

Co-authored-by: XiaoJiang0208 <jjm1837080396@gmail.com>
2026-10-22 08:51:47 +08:00
hayden dfae915b77 pref: optimize print logging 2024-11-11 11:51:22 +08:00
hayden a1e5761dbc feat: adapt to multi user 2024-11-08 11:13:01 +08:00
hayden c1747a79f3 refactor: Migrate the project functionality and optimize the code structure 2024-10-26 21:50:44 +08:00