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.
This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:56:43 +07:00
1 parent c65ba48e10
commit be473d04ad
1 file changed
+2
+2
View File
@@ -10,6 +10,8 @@ use irtt_cli::{format_event, CliArgs};
use irtt_client::{Client, ClientEvent, ClientTimestamp, OpenOutcome, RecvBudget}; use irtt_client::{Client, ClientEvent, ClientTimestamp, OpenOutcome, RecvBudget};
const RECV_BUDGET: RecvBudget = RecvBudget { max_packets: 16 }; 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 FINAL_DRAIN: Duration = Duration::from_millis(100);
const MAX_SLEEP: Duration = Duration::from_millis(20); const MAX_SLEEP: Duration = Duration::from_millis(20);