Skip to content

Commit 51f030d

Browse files
committed
fix(client): keep recursive standby paths inactive
1 parent 182f934 commit 51f030d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • crates/slipstream-client/src/dns

crates/slipstream-client/src/dns/path.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use super::resolver::{
1515
const PATH_PROBE_INITIAL_DELAY_US: u64 = 250_000;
1616
const PATH_PROBE_MAX_DELAY_US: u64 = 10_000_000;
1717
const PROBE_FAILURE_LOG_INTERVAL_US: u64 = 10_000_000;
18+
const SKIP_STANDBY_RECURSIVE_PATH_PROBES: bool = true;
1819

1920
pub(crate) fn refresh_resolver_path(
2021
cnx: *mut picoquic_cnx_t,
@@ -75,6 +76,9 @@ pub(crate) fn add_paths(
7576
let mut default_mode = primary_mode;
7677

7778
for resolver in resolvers.iter_mut().skip(1) {
79+
if SKIP_STANDBY_RECURSIVE_PATH_PROBES && resolver.mode == ResolverMode::Recursive {
80+
continue;
81+
}
7882
if resolver.added {
7983
continue;
8084
}

0 commit comments

Comments
 (0)