-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
http2: add lenient flag for RFC-9113 #58116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58116 +/- ##
==========================================
+ Coverage 89.67% 90.23% +0.55%
==========================================
Files 630 633 +3
Lines 186445 186831 +386
Branches 36310 36681 +371
==========================================
+ Hits 167190 168578 +1388
+ Misses 11998 11038 -960
+ Partials 7257 7215 -42
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linter and the tests themselves are failing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, thanks for updating that 👍. Options buffer test is still failing though.
@@ -25,7 +25,8 @@ const IDX_OPTIONS_MAX_SESSION_MEMORY = 8; | |||
const IDX_OPTIONS_MAX_SETTINGS = 9; | |||
const IDX_OPTIONS_STREAM_RESET_RATE = 10; | |||
const IDX_OPTIONS_STREAM_RESET_BURST = 11; | |||
const IDX_OPTIONS_FLAGS = 12; | |||
const IDX_OPTIONS_STRICT_HTTP_HEADER_FIELD_VALIDATION = 12; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this still has the old option name (just test code, but nice to be consistent)
Aims to close #56703.
The PR proposes the addition of a new flag (provisionally named
strictHttpFieldValidation
) to be added while creating an HTTP/2 session (either client or server side).The flag maps to
nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation
to disable the trailing white space trimming as per RFC-9113.The flag is not mapped by default to be backwards compatible.
Looking forward for feedback before actually kick-off addition of documentation.