Repository navigation
quic: update writedesiredsize on maxdataframe - #65306
martenrichter wants to merge 1 commit into
Conversation
|
Review requested:
|
|
I have just committed a PR to ngtcp2/ngtcp2#2283 . |
cb2e8dd to
0d83b2d
Compare
|
An ngtcp2 version with the change has just been released. @pimterry @jasnell |
|
It's updated by a weekly CI job (https://github.com/nodejs/node/actions/workflows/tools.yml), I've just manually triggered it for ngtcp2 though, PR is here: #67257 |
This commit will react on a callback from ngtcp2, when a maxdata frame arrives and update the scheduled streams accordingly. A PR to get this callback is pending. Fixes: nodejs#64835 Signed-off-by: Marten Richter <marten.richter@freenet.de>
0d83b2d to
a2599f7
Compare
|
Rebased and ready for review. (If tests are passing). |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #65306 +/- ##
=======================================
Coverage 90.69% 90.70%
=======================================
Files 801 801
Lines 281875 281875
Branches 54317 54312 -5
=======================================
+ Hits 255652 255661 +9
+ Misses 16348 16345 -3
+ Partials 9875 9869 -6 🚀 New features to boost your workflow:
|
| // The peer granted more flow control for session. Re-schedule | ||
| // all streams so SendPendingData will resume writing. | ||
| for (auto& [id, stream] : session().streams()) { | ||
| stream->Schedule(&stream_queue_); |
There was a problem hiding this comment.
| stream->Schedule(&stream_queue_); | |
| stream->Schedule(&stream_queue_); | |
| stream->UpdateWriteDesiredSize(); |
Do you need to update the stream size here like you do in http3.cc?
There was a problem hiding this comment.
What about a non-H3 test?
| max_data); | ||
| for (auto& [id, stream] : session().streams()) { | ||
| stream->UpdateWriteDesiredSize(); // the stream might be blocked | ||
| // on js side, is unblock stream also required? |
There was a problem hiding this comment.
Are you looking for an answer to this in this PR or is this more of a follow up?
This commit will react on a callback from
ngtcp2, when a maxdata frame arrives and
update the scheduled streams accordingly.
A PR to get this callback is pending.
Fixes: #64835