Repository navigation
Conversation
rpaulo
reviewed
Nov 6, 2026
|
|
||
| // Try to send more data on all streams due to a received MAX_DATA or ACK | ||
| if applicationPendingItems.triggerAllStreamsUnblocked { | ||
| // The scan puts back every stream that can send now; one that still cannot is noted again. |
Contributor
There was a problem hiding this comment.
Can we improve the wording of this comment to be more explicit?
rpaulo
reviewed
Nov 6, 2026
| static let triggerAllStreamsUnblocked = Flags(rawValue: 1 << 1) | ||
| /// A stream with data to send was left off the list of streams to service for lack of | ||
| /// flow-control window, and nothing has put it back yet. | ||
| static let streamsMayBeBlocked = Flags(rawValue: 1 << 2) |
Contributor
There was a problem hiding this comment.
Should we distinguish between blocked by CC and blocked by FC? If the stream is blocked by FC, an ACK will not help.
agnosticdev
approved these changes
Nov 6, 2026
tfpauly
force-pushed
the
tfp/stream-blocked-flag
branch
from
November 7, 2026 18:39
9a23325 to
974b6b9
Compare
rnro
reviewed
Nov 11, 2026
Comment on lines
+2423
to
+2424
| /// Whether some stream holds data that it cannot send for lack of window, and so is not on the | ||
| /// list of streams to service. An ACK has to look for streams to put back only when this is set. |
Contributor
There was a problem hiding this comment.
This comment makes it sound like it isn't streams may be blocked but that one or more streams are blocked?
rnro
reviewed
Nov 11, 2026
| /// Records that a stream the list of streams to service declined has data it is waiting on window | ||
| /// to send, which is the only reason a stream with data is declined. | ||
| @inline(always) | ||
| private mutating func noteIfBlocked(_ stream: borrowing QUICStreamInstance) { |
Contributor
There was a problem hiding this comment.
is this "note if blocked" or "note interface blocked"? If it's the latter can we spell it out in full?
Contributor
There was a problem hiding this comment.
Looking at the code it looks like the former. An unfortunate naming collision.
Contributor
There was a problem hiding this comment.
Maybe we could work around this?
extension QUICStreamInstance {
var sendDataBlocked: Bool {
!self.send.state.dataHasAlreadyBeenSent && self.hasMoreSendDataToService
}
}
private mutating func noteBlockageState(_ streamIsBlocked: Bool) {
if streamIsBlocked { streamsMayBeBlocked = true }
}
// ...
noteBlockageState(newStream.sendDataBlocked)
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.
Performance improvement to avoid unnecessary stream scanning