Skip to content
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

src,crypto: refactor crypto_tls.* #40675

Merged

Conversation

@RaisinTen
Copy link
Member

@RaisinTen RaisinTen commented Oct 31, 2021

By the design of GetSSLError(), the V8 API was unnecessarily being
accessed in places where it eventually didn't get used. So this refactor
inlines the function appropriately in places where it was being used.
Also, this replaces uses of AllocatedBuffers with BackingStores.

Signed-off-by: Darshan Sen darshan.sen@postman.com

@nodejs-github-bot

This comment has been hidden.

@RaisinTen RaisinTen force-pushed the src,crypto/refactor-crypto_tls branch 4 times, most recently from 73bce22 to 261229d Nov 1, 2021
src/crypto/crypto_tls.cc Outdated Show resolved Hide resolved
Loading
src/crypto/crypto_tls.cc Outdated Show resolved Hide resolved
Loading
src/crypto/crypto_tls.cc Outdated Show resolved Hide resolved
Loading
By the design of `GetSSLError()`, the V8 API was unnecessarily being
accessed in places where it eventually didn't get used. So this refactor
inlines the function appropriately in places where it was being used.
Also, this replaces uses of `AllocatedBuffers` with `BackingStore`s.

Signed-off-by: Darshan Sen <darshan.sen@postman.com>
@RaisinTen RaisinTen force-pushed the src,crypto/refactor-crypto_tls branch from 261229d to 2ab44e9 Nov 2, 2021
@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Nov 3, 2021

Loading

@github-actions
Copy link

@github-actions github-actions bot commented Nov 7, 2021

Commit Queue failed
- Loading data for nodejs/node/pull/40675
✔  Done loading data for nodejs/node/pull/40675
----------------------------------- PR info ------------------------------------
Title      src,crypto: refactor `crypto_tls.*` (#40675)
Author     Darshan Sen  (@RaisinTen)
Branch     RaisinTen:src,crypto/refactor-crypto_tls -> nodejs:master
Labels     crypto, c++, author ready
Commits    1
 - src,crypto: refactor `crypto_tls.*`
Committers 1
 - Darshan Sen 
PR-URL: https://github.com/nodejs/node/pull/40675
Reviewed-By: Anna Henningsen 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/40675
Reviewed-By: Anna Henningsen 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 31 Oct 2021 15:15:39 GMT
   ✔  Approvals: 1
   ✔  - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/40675#pullrequestreview-795054510
   ✖  This PR needs to wait 6 more hours to land (or 0 hours if there is one more approval)
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2021-11-03T13:44:50Z: https://ci.nodejs.org/job/node-test-pull-request/40684/
- Querying data for job/node-test-pull-request/40684/
✔  Build data downloaded
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1431079248

Loading

@nodejs-github-bot nodejs-github-bot merged commit 8ee9e1a into nodejs:master Nov 12, 2021
55 checks passed
Loading
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Nov 12, 2021

Landed in 8ee9e1a

Loading

@RaisinTen RaisinTen deleted the src,crypto/refactor-crypto_tls branch Nov 13, 2021
targos added a commit that referenced this issue Nov 21, 2021
By the design of `GetSSLError()`, the V8 API was unnecessarily being
accessed in places where it eventually didn't get used. So this refactor
inlines the function appropriately in places where it was being used.
Also, this replaces uses of `AllocatedBuffers` with `BackingStore`s.

Signed-off-by: Darshan Sen <darshan.sen@postman.com>

PR-URL: #40675
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants