Skip to content

feat(download): known / HEAD-probed item sizes for accurate upfront ETA total #461

Description

@rejifald

Nice-to-have / possible improvement — not on the v1 critical path. Split out from #456.

BatchProgress.total is the sum of started items' known Content-Lengths, so while items are still queued their sizes are unknown and the aggregate total under-counts — making early ETAs optimistic (they firm up as items start).

Suggestion

Let a caller supply a per-item size, or opt into a cheap HEAD probe before the batch runs, so the aggregate total — and thus the ETA — is accurate from the first tick. Gate the HEAD probe behind an option (an extra round-trip per item); a caller-supplied size is free.

Rig spec P8 / P17. Follow-up to #451.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions