From d4d39922b0e962607b87d12b86d5af9a305ee90a Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Tue, 28 Apr 2026 23:15:45 +0700 Subject: [PATCH] docs(cli): add TODO for refining final drain duration logic Document the need to derive the final drain period from client state rather than using a hardcoded guess. --- crates/irtt-cli/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/irtt-cli/src/main.rs b/crates/irtt-cli/src/main.rs index 73b0c35..3f8a35b 100644 --- a/crates/irtt-cli/src/main.rs +++ b/crates/irtt-cli/src/main.rs @@ -10,6 +10,8 @@ use irtt_cli::{format_event, CliArgs}; use irtt_client::{Client, ClientEvent, ClientTimestamp, OpenOutcome, RecvBudget}; const RECV_BUDGET: RecvBudget = RecvBudget { max_packets: 16 }; +// TODO: derive final drain from pending probe timeout behavior once the client +// exposes enough state for the CLI to stop guessing. const FINAL_DRAIN: Duration = Duration::from_millis(100); const MAX_SLEEP: Duration = Duration::from_millis(20);