Skip to content

fix(quic): charge the keep-alive exempt budget only when a probe reservation is made - #9745

Open
kixelated wants to merge 1 commit into
mainfrom
fix/keep-alive-exempt-budget
Open

kixelated wants to merge 1 commit into
mainfrom
fix/keep-alive-exempt-budget

Conversation

@kixelated

@kixelated kixelated commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

A keep-alive probe past a full congestion window (from moq-dev/moq#9698) spends one unit of a hard / (soft / 2) budget. probe() charged it on every keep-alive firing, even when an earlier exempt probe was still waiting to leave (as behind a stalled socket), so a stall could drain the budget without sending anything and leave later probes stuck behind the window on a dead path. It now charges only when it creates the reservation.

Reported by CodeRabbit on #9698: #9698 (comment)

Caused by

  • moq-dev/moq#9698 - charged the exempt-probe budget on every firing rather than per reservation (found by reviewer)

Public API and wire impact

None. Internal to moq-quic's keep-alive probing.

Validation

  • New rs/moq-quic/src/tests/keep_alive.rs unsent_probe_spends_the_budget_once: fires the keep-alive three times with nothing transmitted; it spent 3 units on main and spends 1 with the fix.
  • The other keep-alive tests (full_window_still_probes_after_healing, straggler_does_not_end_full_window_probes, unacknowledging_peer_keeps_probes_within_the_window, unprotected_packet_leaves_the_peer_stale) still pass.
  • just check passes.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown

(Written by Claude Opus 5.5)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: 50022bf

  • Base: origin/main at 83e10f0

  • Risk: medium, A wrong change to the keep-alive exempt-probe accounting in rs/moq-quic could send too many or too few probes past the congestion window for peers on that QUIC path, and it would reach users only through the next release cut, but it keeps the API and wire format and a revert fully undoes it, so it is a fix to shipped code rather than a break.

  • Classified: medium by Claude Code, claude-haiku-5-5, low effort, session 1fe4baff-2f70-44fd-a512-a123023dab78

  • Risk file: bb7b1c0de60b

  • Reviewer: Codex, gpt-6.2-sol, medium effort

  • Session: 01a21bf4-8466-7572-8e94-07b68461a8db, round 1

  • Score: 9/10, The change charges the keep-alive budget only when it adds a probe reservation and preserves the public API, wire format, and pending-probe send behavior, with verification limited to code inspection as instructed.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

…rvation is made

A keep-alive firing while an earlier exempt probe still waits to leave, as
behind a stalled socket, spent another unit of the `hard / (soft / 2)`
budget without adding a probe, so the budget could run out before a dead
path needed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 27, 2026 07:43
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 104b6b3f-379b-4ab8-bde0-36291076adf6
Commits

Reviewing files that changed from the base of the PR and between 83e10f0 and 50022bf.

Files selected for processing: 2

  • rs/moq-quic/src/connection/mod.rs
  • rs/moq-quic/src/tests/keep_alive.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant