You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
client: StreamCandidate::lease is released after the first target of a multi-target Downloader fetch #2214
area:clidecdn binary: get, gateway, pool, publish, origin, setupkind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
StreamCandidate::lease (decdn-client, added in #2212) is released when the candidate's lane stops in its first fetch. A Downloader given several DownloadTargets builds new SourceLanes from the same candidates for every target (source_lanes, called once per target). So every target after the first runs with the lease already released, and nothing warns about it.
Impact
None today: bundle pull leases candidates only on single-target fetches (fetch::multi_source_download). The only guard is the field's doc ("set it only on a single-target fetch"). A future multi-target caller that holds a stream permit in a lease would silently exceed --max-lane-streams from the second target on.
Options
Make the lease a per-fetch argument keyed by lane, instead of a candidate field. multi_source_download already builds a HashMap<Address, LaneLease>.
Or have Downloader reject a non-empty lease when it is given more than one target.
area:clidecdn binary: get, gateway, pool, publish, origin, setupkind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity