Skip to content

Split STREAM frames between SendableFrames::path_specific and ::other - #858

Merged
matheus23 merged 2 commits into
matheus23/stream-affinityfrom
flub/stream-affinity-path-specific
Oct 23, 2026
Merged

matheus23 merged 2 commits into
matheus23/stream-affinityfrom
flub/stream-affinity-path-specific

Conversation

@flub

@flub flub commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Does this work? Is it simpler?

It removes mixing scheduling info into the can_send world.

@flub
flub requested a review from matheus23 October 22, 2026 14:01
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

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

Last updated: 2026-10-23T09:49:04Z

let need_loss_probe = self.spaces[space_id].for_path(path_id).loss_probes > 0;

if (can_send.other || can_send.stream_data) && !need_loss_probe && !can_send.close {
if (can_send.other || can_send.space_specific) && !need_loss_probe && !can_send.close {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

space_specific was previously ignored in the cc check. this is kind of an unrelated bugfix but also it becomes a lot more important now that (some) STREAM frames are space-specific.

@n0bot n0bot Bot added this to iroh Oct 22, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Oct 22, 2026
Otherwise we might start building a packet based on sticky STREAM
frames, but then not put any such frames in the packet because the
path is not yet validated.
@matheus23
matheus23 merged commit e52c928 into matheus23/stream-affinity Oct 23, 2026
34 checks passed
@matheus23
matheus23 deleted the flub/stream-affinity-path-specific branch October 23, 2026 10:27
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants