# TODO ## Ideas - Resume interrupted transfers: the receiver already reports how much the download manager has read (`{ read }`), which is where a new connection could continue. The browser can't append to a finished or failed download though, so a resume would have to start a new one. ## Open observations - Firefox ignores an errored service worker response stream: when the sender vanishes, the receiver logs "download failed: connection lost", but the download stays "in progress" until the user cancels it. Closing the stream instead is worse, Firefox then reports the truncated file as complete despite `Content-Length`. Chromium fails the download, but only once the connection counts as failed (~16 s), because its data channel never fires `close` for a vanished peer. - Firefox also saves a truncated file as complete when it stops the service worker in the middle of a download (after 30 s without events). The receiver's pings (`KEEPALIVE`) prevent that, covered by `large: firefox survives a 40 s stall`. A browser that stops it anyway would still never show "download complete" or "delivered", only its download manager would be wrong. - `large: firefox sends 2.5 GiB` hit the 5 minute timeout once (first run after the normal suite), not reproduced in 3 runs since. The report was lost; the attached logs will show the cause if it happens again.