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: unref timer in parent sockets by indutny · Pull Request #891 · nodejs/node

Conversation

@indutny

@indutny indutny commented Feb 19, 2015

Copy link
Copy Markdown
Member

TLSSocket wraps the original net.Socket, but writes/reads to/from
TLSSocket do not touch the timers of original net.Socket.

Introduce socket._parent property, and iterate through all parents
to unref timers and prevent timeout event on original net.Socket.

Fix: nodejs/node-v0.x-archive#9242

Sorry, something went wrong.

Uh oh!

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

All reactions
@indutny
net: unref timer in parent sockets
2f471f2
`TLSSocket` wraps the original `net.Socket`, but writes/reads to/from
`TLSSocket` do not touch the timers of original `net.Socket`.

Introduce `socket._parent` property, and iterate through all parents
to unref timers and prevent timeout event on original `net.Socket`.

Fix: nodejs/node-v0.x-archive#9242
@indutny
indutny force-pushed the fix/gh-9242 branch from 42c4712 to 2f471f2 Compare February 19, 2015 13:20
@indutny indutny mentioned this pull request Feb 19, 2015
TLSSocket.destroy() is not fully closing the socket nodejs/node-v0.x-archive#9242
Closed
@indutny

indutny commented Feb 19, 2015

Copy link
Copy Markdown
Member Author

cc @iojs/crypto

All reactions

Sorry, something went wrong.

Uh oh!

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

cjihrig
cjihrig reviewed Feb 19, 2015
View reviewed changes
Comment thread lib/net.js

@cjihrig cjihrig Feb 19, 2015

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.

I wonder if it might be worth adding this as a helper function.

Sorry, something went wrong.

Uh oh!

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

All reactions

@indutny indutny Feb 19, 2015

Copy link
Copy Markdown
Member Author

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.

Done. ;)

Sorry, something went wrong.

Uh oh!

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

All reactions
@indutny
fix
416ca34
yorkie
yorkie reviewed Feb 19, 2015
View reviewed changes
Comment thread lib/_tls_wrap.js Outdated

@indutny indutny Feb 19, 2015

Copy link
Copy Markdown
Member Author

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.

Fixed.

Sorry, something went wrong.

Uh oh!

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

All reactions
@indutny
fix
7a8d34d
@cjihrig

cjihrig commented Feb 19, 2015

Copy link
Copy Markdown
Contributor

LGTM if the tests pass

All reactions

Sorry, something went wrong.

Uh oh!

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

indutny added a commit that referenced this pull request Feb 19, 2015
@indutny
net: unref timer in parent sockets
9b6b055
`TLSSocket` wraps the original `net.Socket`, but writes/reads to/from
`TLSSocket` do not touch the timers of original `net.Socket`.

Introduce `socket._parent` property, and iterate through all parents
to unref timers and prevent timeout event on original `net.Socket`.

Fix: nodejs/node-v0.x-archive#9242
PR-URL: #891
Reviewed-By: Colin Ihrig <[email protected]>
@indutny

indutny commented Feb 19, 2015

Copy link
Copy Markdown
Member Author

Landed in 9b6b055, thank you!

All reactions

Sorry, something went wrong.

Uh oh!

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

@indutny indutny closed this Feb 19, 2015
@indutny
indutny deleted the fix/gh-9242 branch February 19, 2015 17:45
indutny added a commit to nodejs/node-v0.x-archive that referenced this pull request Feb 19, 2015
@indutny @trevnorris
net: unref timer in parent sockets
bada87b
`TLSSocket` wraps the original `net.Socket`, but writes/reads to/from
`TLSSocket` do not touch the timers of original `net.Socket`.

Introduce `socket._parent` property, and iterate through all parents
to unref timers and prevent timeout event on original `net.Socket`.

Fix: #9242
PR-URL: nodejs/node#891
Reviewed-By: Colin Ihrig <[email protected]>
@rvagg rvagg mentioned this pull request Feb 20, 2015
Release proposal: v1.3.0 #872
Closed
This was referenced Sep 15, 2021
[Snyk] Fix for 1 vulnerabilities solebox/node#25
Open
[Snyk] Fix for 1 vulnerabilities saeedahassan/node#35
Open
[Snyk] Fix for 1 vulnerabilities erdun/node#41
Open
[Snyk] Fix for 1 vulnerabilities enterstudio/node#24
Open
[Snyk] Fix for 1 vulnerabilities s4sc/node#24
Open
@leonardoadame leonardoadame mentioned this pull request Dec 3, 2023
[Snyk] Fix for 1 vulnerabilities leonardoadame/node#477
Open
@leonardoadame leonardoadame mentioned this pull request Mar 26, 2024
[Snyk] Fix for 1 vulnerabilities leonardoadame/node#697
Open
@leonardoadame leonardoadame mentioned this pull request Apr 7, 2024
[Snyk] Security upgrade markdown-it from 12.3.2 to 13.0.2 leonardoadame/node#758
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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.

2 participants

@indutny @cjihrig
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.