Skip to content

http2: deprecate priority #58313

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcollina
Copy link
Member

Ref #58293
and #57269.

Signed-off-by: Matteo Collina <[email protected]>
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. http2 Issues or PRs related to the http2 subsystem. labels May 13, 2025
@mcollina mcollina added lts-watch-v20.x PRs that may need to be released in v20.x lts-watch-v22.x PRs that may need to be released in v22.x and removed doc Issues and PRs related to the documentations. http2 Issues or PRs related to the http2 subsystem. labels May 13, 2025
Comment on lines +1478 to 1479
and therefore this method is deprecated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth noting imo that it's deprecated in the latest HTTP/2 RFCs themselves (RFC 9113, here: https://datatracker.ietf.org/doc/html/rfc9113#section-5.3.1) which is the relevant point for most users. It's not that nghttp2 has just unilaterally dropped support, the whole concept is going away everywhere.

@@ -1585,6 +1588,8 @@ Provides miscellaneous information about the current state of the
instances that depend on this `Http2Stream` as specified using
`PRIORITY` frames.
* `weight` {number} The priority weight of this `Http2Stream`.
The support for priority weights has been removed in [latest versions of nghttp2 (1.65.0)][nghttp2-priority],
and therefore this property is deprecated and it should be ignored.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This applies to sumDependencyWeight too.

@marco-ippolito
Copy link
Member

We might have to create an entry in the deprecation.md

@@ -1473,6 +1474,8 @@ added: v8.4.0
sending a `PRIORITY` frame to the connected peer.

Updates the priority for this `Http2Stream` instance.
The support for priority weights has been removed in [latest versions of nghttp2 (1.65.0)][nghttp2-priority],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move this description to the YAML changes: as this will be out-of-date as soon as nghttp releases more versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lts-watch-v20.x PRs that may need to be released in v20.x lts-watch-v22.x PRs that may need to be released in v22.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants