Allow http2 server to be configured with ALPNCallback #55994
Labels
feature request
Issues that request new features to be added to Node.js.
http2
Issues or PRs related to the http2 subsystem.
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
The text was updated successfully, but these errors were encountered: