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 — doc: document `this` binding in TLS callbacks by bobnil · Pull Request #66682 · nodejs/node

Conversation

@bobnil

@bobnil bobnil commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Document that this is bound to the tls.TLSSocket instance when SNICallback and ALPNCallback are invoked.

The default SNICallback implementation already relies on this binding
to access this.server._contexts.

Both callbacks are invoked as methods on the socket:

  • SNICallback invocation
  • ALPN invocation

Sorry, something went wrong.

Uh oh!

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

All reactions
@bobnil
doc: document this binding in TLS callbacks
4843244
Document that `this` is bound to the `tls.TLSSocket` instance
when `SNICallback` and `ALPNCallback` are invoked.

Signed-off-by: Robert I Nilsson <[email protected]>
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to Node.js documentation. tls Issues and PRs related to the tls subsystem. labels Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Welcome to Node.js, and thank you for your first contribution!

Before review, please take a moment to read:

  • the guide for first-time contributors
  • the contribution and automation policies
  • the pull request guide
  • the AI use policy
  • the Code of Conduct

Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bobnil

bobnil commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Gentle ping, @nodejs/documentation,

Would someone be available to review this small documentation-only PR?

It clarifies the this binding in SNICallback and ALPNCallback, based on the existing TLS implementation.

Happy to make any adjustments if needed. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@bobnil

bobnil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Hi!

I noticed that the GitHub Actions workflows for this PR have expired after 30 days while awaiting approval.

The failures appear to be due to the approval timeout rather than any test failures.

Could a collaborator help trigger and approve fresh workflow runs when convenient?

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@pimterry

pimterry commented Nov 12, 2026

Copy link
Copy Markdown
Member

Reopening to rerun workflows

All reactions

Sorry, something went wrong.

Uh oh!

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

@pimterry pimterry closed this Nov 12, 2026
@pimterry pimterry reopened this Nov 12, 2026
pimterry
pimterry approved these changes Nov 12, 2026
View reviewed changes
@pimterry

pimterry commented Nov 12, 2026

Copy link
Copy Markdown
Member

It's not strictly required @bobnil, but most of the time it's useful to have the git commit metadata link to your GitHub, and in this case it doesn't (so the commit shown in https://github.com/nodejs/node/pull/66682/commits and elsewhere doesn't have your profile picture, or link to your account). That's because the email in the commit doesn't match any email on your github account, so it's effectively an unknown author.

I'm happy to merge this, but do you want to fix that first, or merge as is regardless? You can fix by either adding the commit's email ([email protected]) to your github, or by updating the git commit to your github email (change your git author email config, then git commit --amend --reset-author) and force pushing to replace the commit here. Let me know which you'd prefer.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bobnil

bobnil commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for pointing that out! I've added the email address to my GitHub account and made it public, so the commit should now be correctly attributed to my profile.

I'm happy for you to merge it now. Thanks for reviewing!

All reactions

Sorry, something went wrong.

Uh oh!

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

pimterry pushed a commit that referenced this pull request Nov 12, 2026
@bobnil @pimterry
doc: document this binding in TLS callbacks
8aa19d2
Document that `this` is bound to the `tls.TLSSocket` instance
when `SNICallback` and `ALPNCallback` are invoked.

Signed-off-by: Robert I Nilsson <[email protected]>
PR-URL: #66682
Reviewed-By: Tim Perry <[email protected]>
@pimterry

pimterry commented Nov 12, 2026

Copy link
Copy Markdown
Member

Landed in 8aa19d2

bobnil reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@pimterry pimterry closed this Nov 12, 2026
aduh95 pushed a commit that referenced this pull request Nov 16, 2026
@bobnil @aduh95
doc: document this binding in TLS callbacks
3c930d2
Document that `this` is bound to the `tls.TLSSocket` instance
when `SNICallback` and `ALPNCallback` are invoked.

Signed-off-by: Robert I Nilsson <[email protected]>
PR-URL: #66682
Reviewed-By: Tim Perry <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 16, 2026
2026-11-16, Version 27.0.0-alpha.0.1.1 (Alpha) #67515
Merged
aduh95 pushed a commit that referenced this pull request Nov 17, 2026
@bobnil @aduh95
doc: document this binding in TLS callbacks
4979be9
Document that `this` is bound to the `tls.TLSSocket` instance
when `SNICallback` and `ALPNCallback` are invoked.

Signed-off-by: Robert I Nilsson <[email protected]>
PR-URL: #66682
Reviewed-By: Tim Perry <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2026-11-30, Version 26.14.0 'Lithium' (LTS) #67664
Open
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@bobnil @gabylb
doc: document this binding in TLS callbacks
8ff5521
Document that `this` is bound to the `tls.TLSSocket` instance
when `SNICallback` and `ALPNCallback` are invoked.

Signed-off-by: Robert I Nilsson <[email protected]>
PR-URL: nodejs#66682
Reviewed-By: Tim Perry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@pimterry pimterry pimterry approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

doc Issues and PRs related to Node.js documentation. tls Issues and PRs related to the tls 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.

3 participants

@bobnil @pimterry @nodejs-github-bot
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.