I wonder if it's possible to choose server-supported ALPN protocols on per-connection basis #5002
segfault-bilibili
started this conversation in
Ideas
Replies: 0 comments 6 replies
-
That's already supported, if I understand you correctly. See the tls documentation for the |
Beta Was this translation helpful? Give feedback.
4 replies
-
Just a quick update on this, after some more related discussion (#45056) there's now a PR to implement this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to NodeJS. Apologies for my lack of knowledge.
Now we already have
SNICallback
which is able to specify certificates based onservername
. I'm curious whether it's possible to have something similar, likeALPNCallback
which (asynchronously) choose ALPN?I think this might be useful if the server acts like a reverse proxy. If the client supports http/2 while the upstream server doesn't, it seems to help.
Beta Was this translation helpful? Give feedback.
All reactions