Expand description
Mirrors and source selection (PRD §15).
The rule that matters: never splice bytes from two resources you cannot show are the same file. Same filename on two hosts proves nothing. So a mirror is admitted only when
- its size matches the primary’s, and
- its strong
ETagmatches the primary’s, or the user gave us a checksum, which means an end-to-end verification will catch a mismatch.
Anything else is reported and skipped rather than silently mixed in.
Structs§
- Source
- Source
Set - The set of usable sources for one download, with least-failures selection so a flaky mirror drains itself out of rotation without being banned outright.
Enums§
Functions§
- classify
- Decide whether
candidatemay contribute bytes to the same file asprimary.