Skip to main content

MAX_FRESH_READ_ATTEMPTS

Constant MAX_FRESH_READ_ATTEMPTS 

Source
pub const MAX_FRESH_READ_ATTEMPTS: u32 = 7;
Expand description

How many times the offer dispatcher tries to read an accepted chunk back from storage before giving up on its fresh offers.

The chunk was stored moments earlier, so a failed read is a transient fault (exhausted descriptors, an I/O hiccup) far more often than a lost chunk, and such a fault is usually store-wide: every queued write fails at once. The retries back off (see fresh_read_retry_delay), so these attempts span about a minute and a fault shorter than that costs no offers. A lost chunk reports None and is skipped without retry.