Idea · Oct 13, 2026
Build Your Own Resumable Download Manager
A staged networking assignment in which students build a GetRight-style download manager with HTTP range requests, parallel segments, validators and checksums, graded against a chaos server that drops connections, rotates URLs and silently changes files mid-download.
What it would do
A front-page post about making big Firefox downloads resumable reminded HN that this problem was solved by download managers decades ago and then forgotten, and the comments listed every way it can go wrong: one-time URLs that return 410 Gone, servers that ignore Range, files that change between attempts and produce silently corrupt splices. Milestones: (1) a single-connection HTTP/1.1 client over raw sockets that streams to a .part file and survives Ctrl-C; (2) resumption with Range, handling 206, 200 (Range ignored), 416 and 410 correctly; (3) safe resumption using If-Range with ETag or Last-Modified, plus a final SHA-256 check against a published digest; (4) N parallel segments with dynamic work stealing when one segment is slow; (5) a persistent job journal so downloads continue after a process crash. The instructor provides a Flask or Go 'chaos server' with scripted misbehaviors (mid-stream resets, throttling, wrong Content-Length, changed ETag, expiring signed URLs), and the autograder runs each student's client against every scenario and checks the final bytes, the number of bytes re-downloaded, and whether corruption was detected rather than written.
Key features
- Raw-socket HTTP/1.1 client milestone before any library is allowed
- Correct handling of 206, 200, 416, 410 and changed validators via If-Range
- Parallel segmented download with work stealing and a progress UI
- Crash-safe job journal and resume across process restarts
- Chaos-server autograder that scores correctness, wasted bytes and corruption detection