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: the peer-store fast path still takes its first size claim from a stream it drops unread #2633
Today. The peer-store fast path (store_fast_path in crates/client/src/targets.rs) builds a fetch's candidates from fresh peer-store records with no network probe. It sets no size hint. A blob fetch on that path with no known size therefore takes its first size claim from LaneSources::open_for_header (crates/client/src/lane_sources.rs): a whole-blob paid open that it drops once it has read the header. The node writes up to a credit window into that stream first (about 1 to 2 MiB, more with banked lane credit) and counts it in decdn_bytes_served_total.
Why #2619 left it.#2619 made a pinned --node-id fetch probe its node for the size. The fast path is built to send no probe, and its candidates are not known to hold the blob, so probing its first candidate would add a round trip and often return no size.
Ask. Remove the throwaway stream on this path without giving up the probe-free start. Options to weigh:
Probe the first candidate concurrently with the lane build, and use its size only if it answers before the first open.
Activity
fix(gateway,client): size a verified raw blob, and adopt the size ope…