Repository navigation
Conversation
Motivation: The internal root is a fixed sentinel, not a repositionable stream node. Modification: Reject root updates consistently with removal of the root, and exercise both root and self-dependency contracts in PriorityTreeSpec. Result: Invalid local operations leave the tree unchanged. Default scheduling and wire handling are unchanged. References: Netty 4.2 DefaultHttp2RemoteFlowControllerTest local programming contracts; RFC 9113 Sections 5.3.2 and 6.3.
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.
Motivation
The internal HTTP/2 priority tree uses a fixed root sentinel. Removing the root was already rejected, but a root update had no corresponding guard. Two checks for the root and self-dependencies were pending.
Modification
Reject root updates using the existing local argument-check convention. Enable the root and self-dependency tests, covering both new and existing nodes for self-dependency.
Result
Internal tree operations consistently reject attempts to move the root or introduce a self-dependency. The default scheduler and wire behavior are unchanged.
Tests
References
DefaultHttp2RemoteFlowControllerTest: local tree argument checks.