Repository navigation
ServerH2StreamHandler, ClientH2StreamHandler: validate content length in case of the message stream being terminated by trailers - #1539
Merged
Conversation
… in case of the message stream being terminated by trailers
Member
Author
|
@arturobernalg Please double-check |
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 am getting old //
This change-set
ClientPushH2StreamHandlerandServerH2StreamHandlerin case of the message stream being terminated with a HEADERS frame.ClientPushH2StreamHandleris unaffected.ServerH2StreamHandlerterminates the entire connection not just the offending stream for consistency with the behavior of the client side protocol handlers.The requirements of RFC 9113 section 8.1.1 "Malformed Messages" with regards to
content-lengthfield handling apply to HTTP intermediaries only. There is no such requirement for client or server endpoints. I made a mistake introducing such a restriction in the first place. Now that it has made its way into a GA release the least we can do is to be consistent.