GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — net: use kHandle symbol for accessing native handle by addaleax · Pull Request #26491 · nodejs/node

Conversation

@addaleax

@addaleax addaleax commented Mar 7, 2019

Copy link
Copy Markdown
Member

Use a common kHandle for all StreamBase-based streams.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss and lpinca reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@addaleax
net: use kHandle symbol for accessing native handle
fcaa459
Use a common `kHandle` for all `StreamBase`-based streams.
@nodejs-github-bot

nodejs-github-bot commented Mar 7, 2019

Copy link
Copy Markdown
Collaborator

@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/2797/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added dont-land-on-v6.x http2 Issues and PRs related to the http2 subsystem. net Issues and PRs related to the net subsystem. labels Mar 7, 2019
mihalskiy
mihalskiy approved these changes Mar 7, 2019
View reviewed changes
cjihrig
cjihrig approved these changes Mar 7, 2019
View reviewed changes
joyeecheung
joyeecheung approved these changes Mar 7, 2019
View reviewed changes
sam-github
sam-github approved these changes Mar 7, 2019
View reviewed changes

@sam-github sam-github left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM, though I'm surprised that the req.stream property was unused and could be deleted.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@addaleax

addaleax commented Mar 7, 2019

Copy link
Copy Markdown
Member Author

@sam-github Yeah, me too – I don’t think it’s conceptually necessary though, because req.handle[owner_symbol] should also point back to the original Http2Stream?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github

sam-github commented Mar 7, 2019

Copy link
Copy Markdown
Contributor

I'm fuzzy on the concept, but if tests pass, its not needed. Not just HTTP2, owner_symbol is also what lib/_tls_wrap.js uses to get back to the stream.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jasnell
jasnell approved these changes Mar 7, 2019
View reviewed changes
lpinca
lpinca approved these changes Mar 8, 2019
View reviewed changes
BridgeAR
BridgeAR approved these changes Mar 8, 2019
View reviewed changes
@BridgeAR

BridgeAR commented Mar 8, 2019

Copy link
Copy Markdown
Member

CI https://ci.nodejs.org/job/node-test-pull-request/21332/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Mar 8, 2019
@addaleax

addaleax commented Mar 9, 2019 •
edited by BridgeAR
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/21368/ ✔️

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 9, 2019
@addaleax @BridgeAR
net: use kHandle symbol for accessing native handle
e7f5886
Use a common `kHandle` for all `StreamBase`-based streams.

PR-URL: nodejs#26491
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@BridgeAR

BridgeAR commented Mar 9, 2019

Copy link
Copy Markdown
Member

Landed in e7f5886 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR closed this Mar 9, 2019
BridgeAR pushed a commit that referenced this pull request Mar 14, 2019
@addaleax @BridgeAR
net: use kHandle symbol for accessing native handle
9ed0624
Use a common `kHandle` for all `StreamBase`-based streams.

PR-URL: #26491
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@BridgeAR BridgeAR mentioned this pull request Mar 14, 2019
2019-03-14, Version 11.12.0 (Current) #26644
Merged
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 14, 2019
@addaleax @BridgeAR
net: use kHandle symbol for accessing native handle
84de418
Use a common `kHandle` for all `StreamBase`-based streams.

PR-URL: nodejs#26491
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
BridgeAR pushed a commit that referenced this pull request Mar 14, 2019
@addaleax @BridgeAR
net: use kHandle symbol for accessing native handle
c14aa07
Use a common `kHandle` for all `StreamBase`-based streams.

PR-URL: #26491
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@lpinca lpinca lpinca approved these changes
@cjihrig cjihrig cjihrig approved these changes
@joyeecheung joyeecheung joyeecheung approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
+2 more reviewers
@sam-github sam-github sam-github approved these changes
@mihalskiy mihalskiy mihalskiy approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. http2 Issues and PRs related to the http2 subsystem. net Issues and PRs related to the net subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@addaleax @nodejs-github-bot @sam-github @BridgeAR @jasnell @lpinca @cjihrig @joyeecheung @mihalskiy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.