Skip to content

No user-settable deadline bounds client discovery #1349

Closed

Description

@yigitdot

PullDeadlines (crates/cli/src/commands/fetch.rs:569) is constructed after resolve_target_node runs (fetch.rs:494) and wraps only the stream_fetch leg, so neither --stall-timeout-ms nor --timeout-ms covers node discovery. --timeout-ms's help text scopes it to "a single blob fetch" (crates/common/src/cli/fetch.rs:143), so this is not a contract violation — but there is no flag that bounds discovery at all.

Since #1341 that window is real: the registry read retries on the ADR 012 schedule, so a fully-failing page costs 36 s, and the budget resets per page, so an N-page read can reach 36 s × N. decdn fetch --timeout-ms 5000 can therefore take 36 s+ before the transfer starts.

#1341 mitigated the worst case (deterministic failures now return immediately instead of burning the schedule, and the cache fallback is announced on stderr), so this is no longer silent — but the latency is still unbounded and unconfigurable.

Options: an aggregate retry budget across pages rather than per-page, a discovery-specific deadline flag, or extending --timeout-ms to cover discovery with the help text updated to match.

Activity

  1. added
    rust
    area:cli
    prio:medium
    on Jul 21, 2026
  2. self-assigned this
    on Jul 21, 2026
  3. thiras commented on Jul 21, 2026

    @thiras
    Contributor

    Fixed in #1362 (merged as e73fa04).

    Note the batch's review round revised the framing of this issue's premise where it was wrong — see the PR description and the ADR/NatSpec updates for the corrected account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cliprio:mediumrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions