pub const SEGMENT_DOWNLOAD_RETRIES: usize = 3;
The number of times we try to download a segment before giving up. This is a suggested default, callers can supply their own value if needed.