Skip to content

Conversation

@trevnorris
Copy link
Contributor

@trevnorristrevnorris commented Jul 21, 2017

Checklist

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

http

If an uninitialized or user supplied Socket is in the freeSockets list of
the Agent it would automatically attempt to run ._handle.asyncReset(),
but would throw from those not existing. Guard against that by first
checking that they exist.

Fixes: #13539
Refs: #13352

CI: https://ci.nodejs.org/job/node-test-commit/11301/

refack: added ref to 13352

@nodejs-github-botnodejs-github-bot added the http Issues or PRs related to the http subsystem. label Jul 21, 2017
@mscdexmscdex added the async_hooks Issues and PRs related to the async hooks subsystem. label Jul 22, 2017
Copy link
Member

@AndreasMadsenAndreasMadsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the http module well enough to comment on this. I trust @refack's opinion.

@refack
Copy link
Contributor

I don't know the http module well enough to comment on this. I trust @refack's opinion.

😳 Just so you stop trusting me, I wanted to add this back in #13839 (comment) but forgot to open a new PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trevnorris Re your comment #13045 (comment)
Could you add a test case for a Socket with a fake _handle?

@trevnorris
Copy link
ContributorAuthor

trevnorris commented Jul 24, 2017

@refackrefack mentioned this pull request Jul 24, 2017
If an uninitialized or user supplied Socket is in the freeSockets list of the Agent it would automatically attempt to run ._handle.asyncReset(), but would throw from those not existing. Guard against that by first checking that they exist. PR-URL: nodejs#14419Fixes: nodejs#13539 Refs: nodejs#13352 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@refackrefack merged commit 93f47b1 into nodejs:masterJul 25, 2017
@trevnorris
Copy link
ContributorAuthor

@refack Thanks for landing this.

addaleax pushed a commit that referenced this pull request Jul 27, 2017
If an uninitialized or user supplied Socket is in the freeSockets list of the Agent it would automatically attempt to run ._handle.asyncReset(), but would throw from those not existing. Guard against that by first checking that they exist. PR-URL: #14419Fixes: #13539 Refs: #13352 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@addaleaxaddaleax mentioned this pull request Aug 2, 2017
@MylesBorinsMylesBorins added baking-for-lts PRs that need to wait before landing in a LTS release. lts-watch-v6.x labels Aug 16, 2017
@MylesBorinsMylesBorins removed the baking-for-lts PRs that need to wait before landing in a LTS release. label Aug 17, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooksIssues and PRs related to the async hooks subsystem.httpIssues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot read property 'asyncReset' of null

8 participants

@trevnorris@refack@jasnell@AndreasMadsen@cjihrig@mscdex@MylesBorins@nodejs-github-bot