Skip to content

feat(net): qualify measured path latency with bounded periodic selection - #110

Merged
rldyourmnd merged 7 commits into
mainfrom
feat/latency-path-preference-20261006
Oct 6, 2026
Merged

rldyourmnd merged 7 commits into
mainfrom
feat/latency-path-preference-20261006

Conversation

@rldyourmnd

@rldyourmnd rldyourmnd commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The default Iroh selector keeps a usable direct path primary even when an allowed relay has substantially lower measured RTT. Selector callbacks also occur only on topology events, so a different ranking alone cannot react to later delay changes.

Add explicit local path_preference: latency with 5 ms stickiness and one-second periodic selection, retaining the existing default, strict pins and transport eligibility. Carry a narrow, default-None refresh hook in exact published Iroh 1.3 source with supplier provenance and all upstream license notices. Unchanged selections are not reapplied, and obsolete refresh ticks are skipped after a stall. QUIC, TLS, relay wire and identity behavior remain unchanged. Owned Noq already periodically selects validated paths by RTT.

The bounded desktop observer records initial selected transmit paths and actual changes using numeric local IDs, kind and sampled RTT. Ordinary RTT updates do not create log chatter; no extra query is added to input/control readers.

Validation covers faster permitted relay selection, stickiness/extreme values, strict configuration, real actor refresh without topology changes, no refresh for default selectors, no missed-tick burst after an isolated actor stall, endpoint shutdown, and strict single-path UDP proxy behavior. Final strict Clippy, network tests (171 macOS/172 Linux), desktop unit tests (106 macOS/119 Linux with two unchanged platform ignores), optimized agents and the full public CI matrix passed. The scoped two-device opt-in pilot retains stable background receive/control evidence; sustained native typing/visible-response acceptance remains open; this PR does not claim a completed latency/stability wave. The eleven newly vendored CodeQL public-key derivation cases were individually reviewed in the committed security report; coverage remains enabled.

Comment thread vendor/iroh/examples/0rtt.rs Dismissed
Comment thread vendor/iroh/examples/connect.rs Dismissed
Comment thread vendor/iroh/examples/incoming-filter.rs Dismissed
Comment thread vendor/iroh/examples/listen-unreliable.rs Dismissed
Comment thread vendor/iroh/examples/listen-unreliable.rs Dismissed
Comment thread vendor/iroh/examples/listen.rs Dismissed
Comment thread vendor/iroh/examples/listen.rs Dismissed
Comment thread vendor/iroh/examples/search.rs Dismissed
Comment thread vendor/iroh/src/address_lookup/pkarr.rs Dismissed
@rldyourmnd
rldyourmnd marked this pull request as ready for review October 6, 2026 03:56
@rldyourmnd
rldyourmnd merged commit 04d92cb into main Oct 6, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants