Skip to content

PROBE_TIMEOUT regressed 500ms -> 5s, contradicting ADR 001 §Probe response collection #1220

Closed

Description

@yigitdot

crates/node/src/selection.rs:25 declares pub const PROBE_TIMEOUT: Duration = Duration::from_secs(5);.

ADR 001 §Probe response collection (adr/001-network.md:103) mandates a 500ms probe-collection ceiling, and commit 1c8a846 (#1200) set it accordingly ("The node-origin probe timeout drops from 5s to 500ms to match").

Commit deaab0f (#1145) landed after #1200 and, while relocating the constant from node_origin.rs to selection.rs "beside the deadline arithmetic", reinstated the pre-trim 5s value and its pre-trim doc comment.

This is a 10x violation of the cold-miss latency ceiling. It also propagates: selection.rs:36 derives PULL_THROUGH_OUTER_SLACK = PROBE_TIMEOUT + DEFAULT_ROUND_TIMEOUT * MAX_LOOKUP_ROUNDS, which feeds outer_pull_deadline. Restoring 500ms therefore shifts the derived pull deadlines and the outer_pull_deadline_at_defaults_is_172s test — which is why it is split out of #1165 (the positive probe cache) rather than bundled into it.

Found during #1165 planning.

Activity

  1. added
    rust
    on Jul 16, 2026
  2. self-assigned this
    on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

rust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions