Windows Download Manager
ODM
An open download manager for Windows that splits every file across several connections, survives a crash or a restart mid-download, and takes downloads and videos over from seven browsers.

Why it exists
The download managers I trusted went closed or bloated, so I built an open one that survives crashes and takes over from the browser.
What it took
01Rebalancing parallel ranges at run time instead of fixing the plan up front: a connection that finishes takes the upper half of the largest unfinished range, with a two-megabyte floor so the split never costs more than it saves.
02Separating claimed bytes from written bytes and persisting only the written ones, so a crash resumes every range from a point that is on disk rather than from one a worker had merely reserved.
03Deciding whether a remote file changed from validators of the same kind only — ETag against ETag, Last-Modified against Last-Modified — and treating a missing validator as no evidence, so a resume neither corrupts a changed file nor restarts an unchanged one.
04Rate limiting with a token bucket that allows debt, so a read larger than the bucket waits in proportion to its size instead of spinning, and a new limit takes effect at once rather than after old debt is paid.
05Handing browser downloads over through a native messaging host with a five-second fallback, so the browser keeps any download ODM does not claim in time.
06Testing the engine against a fault-injecting HTTP server that refuses ranges, hides the length, drops connections and fails on demand, rather than against a server that always behaves.
Built with
Screens



