-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
tls: update source, related test & doc for ArrayBuffer/DataView #23210
Conversation
doc/api/tls.md
Outdated
first byte is the length of the next protocol name. Passing an array is | ||
usually much simpler, e.g. `['hello', 'world']`. | ||
* `ALPNProtocols`: {string[]|Buffer[]|TypedArray[]|DataView[]|Buffer| | ||
TypedArray|DataView} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: it seems this line needs 2 more spaces for indent.
doc/api/tls.md
Outdated
usually much simpler, e.g. `['hello', 'world']`. | ||
(Protocols should be ordered by their priority.) | ||
* `ALPNProtocols`: {string[]|Buffer[]|TypedArray[]|DataView[]|Buffer| | ||
TypedArray|DataView} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same.
@vsemozhetbyt , |
Doc changes LGTM) |
ping @BeniCheni test.sequential/test-gc-net-timeout timeouted Resume CI: https://ci.nodejs.org/job/node-test-pull-request/17599/ |
In tls module, accept ArrayBuffer/DataView in place of isUint8Array in the source code & related test code in "test-tls-basic-validations.js", per the "tls" item in the checklist of the comment in #1826. Refs: #1826 (comment)
🙏 for reviewing, approving & the CI instance, @lundibundi. Minor FYI I saw a previous CI flaky failure, so I just rebased & pushed to get "green" CI again. |
Ping / dear reviewers, Friendly reminder the previous approvals & “green” CI are all set for this PR, ready for “author ready”. Hoping the PR wouldn’t become too stale. Thanks. |
Sorry for the delay, forgot to start CI after the first message. |
Landed in f5ab9d1. |
In tls module, accept ArrayBuffer/DataView in place of isUint8Array in the source code & related test code in "test-tls-basic-validations.js", per the "tls" item in the checklist of the comment in #1826. PR-URL: #23210 Refs: #1826 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
Should this be backported to |
In tls module, accept ArrayBuffer/DataView in place of isUint8Array in the source code & related test code in "test-tls-basic-validations.js", per the "tls" item in the checklist of the comment in #1826. PR-URL: #23210 Refs: #1826 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
Refs: #1826
Referring to the comment in "mentor-available" #1826, this PR tries out the
tls
item from the checklist of the comment: (Thanks for your review!)isArrayBufferView
in place ofisUint8Array
tls.md
doc.make -j4 test
(UNIX), orvcbuild test
(Windows) passes