Repository navigation
Conversation
Signed-off-by: Tim Perry <pimterry@gmail.com>
Collaborator
|
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66759 +/- ##
==========================================
+ Coverage 90.48% 90.50% +0.02%
==========================================
Files 797 797
Lines 277491 277503 +12
Branches 53318 53322 +4
==========================================
+ Hits 251091 251161 +70
+ Misses 16793 16752 -41
+ Partials 9607 9590 -17 🚀 New features to boost your workflow:
|
efekrskl
approved these changes
Oct 15, 2026
Comment on lines
-2093
to
-2094
| // We call Application::ResumeStream directly (not Session::ResumeStream) | ||
| // to avoid creating a SendPendingDataScope — we're already inside |
Member
There was a problem hiding this comment.
Isn't this part still relevant?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I found that
test-quic-flow-control-concurrent-volumefailed on my machine under load while doing some other QUIC dev, did some digging, and it turns out it's a real bug. Flow:ngtcp2_conn_writev_streamsetsnwrite > 0(a packet was produced) butndatalen == -1(this stream's data wasn't included).nwrite == 0case which reschedules streams to try again later. This applies for data not sent due to congestion, but not data omitted due to packet space.The fix here works by rescheduling the stream in all cases where the frame couldn't be included (
ndatalen < 0) and there was no error (nwrite >= 0), not just congestion. The early exit below fornwrite == 0remains, since we do still need to stop once we hit congestion regardless. Simplified the comment to explain this more clearly en route.Reproduced in a standalone test here, which triggers this by sending a STREAM frame + FIN frame where the data is large enough that the FIN doesn't fit. The exact size to trigger this can vary, so this runs a full sweep over message sizes from 1000 - 1300, and makes sure they all deliver successfully (including clean FIN). Fails reliably on main, passes with this change. The original flaky test also no longer flakes 😄.