Skip to content

Allow http2 server to be configured with ALPNCallback #55994

Closed
@Y3RmKHgp

Description

@Y3RmKHgp

What is the problem this feature will solve?

Currently, the http2 server always sets the ALPNProtocols field on the TLSServer options, which makes it incompatible with the ALPNCallback option.

Fixing this allows an http2 server with custom ALPN processing to be possible. For example, this allows the server to dynamically allow or deny http2 support based on the SNI.

What is the feature you are proposing to solve the problem?

Patch lib/internal/http2/core.js to avoid setting ALPNProtocols if ALPNCallback is present.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.http2Issues or PRs related to the http2 subsystem.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions