-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
ALPNProtocols option of TLSSocket constructor is broken. #16643
Comments
It sounds like the constructor should call |
I wasn't aware of these methods, thanks for the tip. I'll probably have to apply them within the |
@qubyte I think it’s more like, the But for now calling them yourself should be fine as a workaround. |
@addaleax Hmm. I think I wasn't making myself clear. I mean to call these within the |
@qubyte Yes, I think we’re on the same page. Go for it if you like! |
Thanks! Looks like I can't self-assign though. Would you mind doing that for me please? |
Brings the ALPNProtocols & NPNProtocols options of TLSSocket in line with the documentation. i.e. an array of strings for protocols may be used, not only a buffer. PR-URL: #16655 Fixes: https://github.com/node/issues/16643 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Fixed by 291ff72 |
Documentation for the
ALPNProtocols
option (found here) indicates that an array of strings should be acceptable:However, the example above produces this error:
From which I inferred that I had to use a buffer:
If this is indeed a documentation bug, I'd be happy to open a pull request. I'll take a shot at a code bug if the issue is determined to be there instead.
The text was updated successfully, but these errors were encountered: