Skip to content

wip: start implementing last_send tracking for PTO#279

Closed
dignifiedquire wants to merge 1 commit intomainfrom
feat-latest-send
Closed

wip: start implementing last_send tracking for PTO#279
dignifiedquire wants to merge 1 commit intomainfrom
feat-latest-send

Conversation

@dignifiedquire
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/quinn/pr/279/docs/iroh_quinn/

Last updated: 2025-12-17T18:02:15Z

@n0bot n0bot bot added this to iroh Dec 17, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Dec 17, 2025
pub(crate) fn timer_offset(&self, now: Instant, duration: Duration) -> Instant {
let start = self.last_sent.unwrap_or(now);
let end = start + duration;
if end > start {
Copy link
Copy Markdown
Member

@Frando Frando Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be if end > now I think?

Comment on lines +678 to +679
let end = self.calculate_end_timer(now, 3, SpaceId::Data);
let extended_end = self.calculate_end_timer(now, 6, SpaceId::Data);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let end = self.calculate_end_timer(now, 3, SpaceId::Data);
let extended_end = self.calculate_end_timer(now, 6, SpaceId::Data);
let last_allowed_receive = self.calculate_end_timer(now, 3, SpaceId::Data);
let path_discard = self.calculate_end_timer(now, 6, SpaceId::Data);

@flub flub added the multipath QUIC Multipath extension label Dec 22, 2025
@flub
Copy link
Copy Markdown
Collaborator

flub commented Mar 12, 2026

Only cursory looking at this, but I'm fairly sure that PacketNumberSpace::largest_ack_eliciting_sent is the value that you need as start time for each path's PTO. Don't think we need to track anything new.

@flub flub closed this Mar 30, 2026
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multipath QUIC Multipath extension

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants