Repository navigation
feat: Fair scheduling with strict priorities - #833
danielpetri1 wants to merge 10 commits into
Conversation
|
@danielpetri1 how much simpler would your implementation become if we deprecated |
|
Thanks for considering it! I believe that the implementation would become simpler and easier to maintain. If I'm allowed to break stuff, could implement it like that alongside #817. |
|
No, breaking changes are not acceptable, but removing the We won't accept breaking changes to the API unfortunately :/ |
scheduling Always schedule equal-priority streams round-robin, removing continuation handling before introducing stream affinity. Keep the setter as a deprecated no-op for source compatibility.
|
Feel free to rebase on top of #835 and use it as a merge target for this PR, if you want. |
# Conflicts: # noq-proto/src/config/transport.rs # noq-proto/src/connection/streams/mod.rs # noq-proto/src/connection/streams/state.rs
… competes with low-prio non-incremental
7afec9c to
f3e694f
Compare
|
Rebased it to target your branch. After considering the discussion, I've retained |
1438f7f to
8cfde5e
Compare
8cfde5e to
b0f0f8e
Compare
|
Sorry for this - this is automated github behavior. The underlying base branch was merged now (which automatically closes this PR...). Can you direct the PR at main again? This should be possible without conflicts now. |
|
No problem, I'll open a new PR. Should I keep send_fairness as a no-op or retain it as the default incremental value? |
|
Default incremental is the way to go! Thank you |
…n0-computer#835) ## Description Always schedule equal-priority streams round-robin, removing continuation handling before introducing stream affinity. Keep the setter as a deprecated no-op for source compatibility. ## API Changes - `noq::TransportConfig::send_fairness` is now deprecated. ## Notes & open questions We might want to wait for n0-computer#833 before we release with this PR, so we can have an alternative to link to in deprecation documentation (the `incremental=false` setting). ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All API changes documented. - [x] `cargo make` passes locally.
Description
Extends the fair stream scheduling behavior to allow strict sending within that urgency level.
This is achieved by adding a per-stream
incrementalparameter, following RFC 9218 semantics.The
incrementalflag controls whether that stream can be multiplexed with others at the same urgency level. Non-incremental streams are scheduled before incremental ones. Ties in the non-incremental case are broken by favoring earlier stream IDs (not the write order anymore).API Changes
set_incremental(bool)setter andincremental()gettersend_fairness(bool)to set the default value of the newincrementalflag. The demand forsend_fairnesswas discussed in Add alternative - unfair but lower latency - send stream scheduling strategy quinn-rs/quinn#2002; settingincremental=falseas a default gets very close to achieving thatNotes & open questions
incrementalparameter is set totrueto retain fair scheduling across all streamsChange checklist
proposed change and wrote an as clear and concise description as
they could.
intented effect.
cargo makepasses locally.