Skip to content
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

[HTTP3] Clarify reserved values. #3610

Merged
merged 1 commit into from
Apr 29, 2020
Merged

[HTTP3] Clarify reserved values. #3610

merged 1 commit into from
Apr 29, 2020

Conversation

bencebeky
Copy link
Contributor

Clarify reserved values for stream types, settings identifiers, frame
types, and error codes.

0x1f * N + 0x21 for the value of N = -1 is 0x02. Literal interpretation
of the current text includes this as a reserved value. The
parenthetical examples given in Section 11.2 make it clear that this was
not the intention, rendering this PR editorial.

The main motivation of this PR is not that the current text is
inconsistent, but that parenthetical examples from 11.2 are necessary to
correctly interpret the definitions in sections 6.2.3, 7.2.4.1, 7.2.8,
and 8.1.

Alternative wordings could be:
"0x1f * N + 0x21 for N = 0, 1, 2, ..."
"0x1f * N + 0x02 for positive integer values of N"
"0x1f * N + 0x02 for N = 1, 2, 3, ..."
"0x21, 0x21 + 0x1f, 0x21 + 2 * 0x1f, ..."
"a value of at least 0x21 with a remainder of 0x02 modulo 0x1f"
"a value of at least 0x21 that is congruent to 0x21 modulo 0x1f"
none of which is better than what this PR proposes.

Clarify reserved values for stream types, settings identifiers, frame
types, and error codes.

0x1f * N + 0x21 for the value of N = -1 is 0x02.  Literal interpretation
of the current text includes this as a reserved value.  The
parenthetical examples given in Section 11.2 make it clear that this was
not the intention, rendering this PR editorial.

The main motivation of this PR is not that the current text is
inconsistent, but that parenthetical examples from 11.2 are necessary to
correctly interpret the definitions in sections 6.2.3, 7.2.4.1, 7.2.8,
and 8.1.

Alternative wordings could be:
"0x1f * N + 0x21 for N = 0, 1, 2, ..."
"0x1f * N + 0x02 for positive integer values of N"
"0x1f * N + 0x02 for N = 1, 2, 3, ..."
"0x21, 0x21 + 0x1f, 0x21 + 2 * 0x1f, ..."
"a value of at least 0x21 with a remainder of 0x02 modulo 0x1f"
"a value of at least 0x21 that is congruent to 0x21 modulo 0x1f"
none of which is better than what this PR proposes.
@ianswett ianswett added -http editorial An issue that does not affect the design of the protocol; does not require consensus. labels Apr 29, 2020
@MikeBishop MikeBishop merged commit f254feb into quicwg:master Apr 29, 2020
@bencebeky bencebeky deleted the bencebeky-http-grease branch May 5, 2020 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-http editorial An issue that does not affect the design of the protocol; does not require consensus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants