Skip to main content

check_trace_timeouts

Function check_trace_timeouts 

Source
pub fn check_trace_timeouts(
    measurement: Arc<RwLock<Option<MeasurementState>>>,
    cli_sender: Arc<Mutex<Option<Sender<Result<ReplyBatch, Status>>>>>,
)
Expand description

Check ongoing Trace tasks that have timed out (i.e., a hop didn’t respond within the timeout)

  • Linear sessions follow up with TTL + 1, terminating after max_failures consecutive unresponsive hops
  • Binary sessions (tracemap) first extend the confirmation window past the silent midpoint (to rule out an interior unresponsive hop); once the window is exhausted the silent tail is assumed to start at the midpoint and the search continues in the lower half

§Arguments

  • measurement - Shared measurement state containing worker_stacks and trace_config
  • cli_sender - Sender handle for forwarding ‘*’ hops to the CLI