Skip to main content

Module mirror

Module mirror 

Source
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 ETag matches 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
SourceSet
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§

Admission

Functions§

classify
Decide whether candidate may contribute bytes to the same file as primary.