feat(client): track and handle late replies after timeout

This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:56:43 +07:00
1 parent f41f63b922
commit ab951a440a
3 files changed
+215 -8

No files matched your search

+2 -1
View File
@@ -5,7 +5,7 @@ use irtt_proto::{Params, PROTOCOL_VERSION};
use crate::{
config::NegotiationPolicy,
error::ClientError,
probe::{CompletedSet, PendingMap},
probe::{CompletedSet, PendingMap, TimedOutMap},
};
#[derive(Debug, Clone, PartialEq, Eq)]
@@ -31,6 +31,7 @@ pub(crate) struct ActiveSession {
pub end_mono: Option<Instant>,
pub next_send_at: Instant,
pub pending: PendingMap,
pub timed_out: TimedOutMap,
pub completed: CompletedSet,
pub sending_done: bool,
}