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 — http: fix undefined error in parser event by apapirovski · Pull Request #20029 · nodejs/node

Conversation

@apapirovski

@apapirovski apapirovski commented Apr 14, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

The current check for socket.server[kIncomingMessage] does not account for the possibility of a socket.server that doesn't have that property defined. Fix it.

No test as this isn't officially supported behaviour but the fix is simple so we might as well do it to not break the ecosystem.

(Would be nice to get this in v10.x if possible.)

Fixes: #19231

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 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@apapirovski
http: fix undefined error in parser event
ec35cec
The current check for socket.server[kIncomingMessage] does not
account for the possibility of a socket.server that doesn't
have that property defined. Fix it.
@apapirovski apapirovski added the http Issues and PRs related to the http subsystem. label Apr 14, 2018
@apapirovski apapirovski added this to the 10.0.0 milestone Apr 14, 2018
@nodejs-github-bot nodejs-github-bot added the http Issues and PRs related to the http subsystem. label Apr 14, 2018
@apapirovski

apapirovski commented Apr 14, 2018

Copy link
Copy Markdown
Contributor Author

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

All reactions

Sorry, something went wrong.

Uh oh!

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

bnoordhuis
bnoordhuis approved these changes Apr 14, 2018
View reviewed changes
@bnoordhuis

bnoordhuis commented Apr 14, 2018

Copy link
Copy Markdown
Member

There's that make[2]: write error thing on the plinux bot again. New CI:

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

All reactions

Sorry, something went wrong.

Uh oh!

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

lpinca
lpinca approved these changes Apr 14, 2018
View reviewed changes
trivikr
trivikr approved these changes Apr 14, 2018
View reviewed changes
jasnell
jasnell approved these changes Apr 14, 2018
View reviewed changes
BridgeAR
BridgeAR approved these changes Apr 15, 2018
View reviewed changes
@BridgeAR

BridgeAR commented Apr 15, 2018

Copy link
Copy Markdown
Member

About not adding a test: in a way this means it could break again at any point of time. So I personally would add a test even if we do not officially support this.

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 Apr 15, 2018
@apapirovski

apapirovski commented Apr 15, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

in a way this means it could break again at any point of time.

I'm fine with that. I don't want to add a test that forces us to maintain this behaviour if it's not sensible to do so in the future. (Even if it's just as simple as making someone hesitate to make an otherwise beneficial change.) There are already some difficult guarantees around what http does that impede certain changes that would be good for it.

(The only way I know how to test this would also mean it would test a bunch of other behaviours that aren't documented and are just byproducts of how the internals are setup.)

All reactions

Sorry, something went wrong.

Uh oh!

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

XadillaX
XadillaX approved these changes Apr 17, 2018
View reviewed changes
@apapirovski

apapirovski commented Apr 17, 2018

Copy link
Copy Markdown
Contributor Author

Landed in 95fafc0

All reactions

Sorry, something went wrong.

Uh oh!

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

@apapirovski apapirovski closed this Apr 17, 2018
@apapirovski
apapirovski deleted the fix-http-kincomingmessage-undef branch April 17, 2018 14:11
apapirovski added a commit that referenced this pull request Apr 17, 2018
@apapirovski
http: fix undefined error in parser event
95fafc0
The current check for socket.server[kIncomingMessage] does not
account for the possibility of a socket.server that doesn't
have that property defined. Fix it.

PR-URL: #20029
Fixes: #19231
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
jasnell pushed a commit that referenced this pull request Apr 17, 2018
@apapirovski @jasnell
http: fix undefined error in parser event
54a2e93
The current check for socket.server[kIncomingMessage] does not
account for the possibility of a socket.server that doesn't
have that property defined. Fix it.

PR-URL: #20029
Fixes: #19231
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
This was referenced Apr 19, 2018
_http_common ParserIncomingMessage fails to check for undefined on parser.socket.server[kIncomingMessage] #20151
Closed
v9.x ParserIncomingMessage is not a constructor #20241
Closed
@apapirovski apapirovski mentioned this pull request Sep 15, 2018
node 8.12 net,http module emit connection bug. TypeError: ParserIncomingMessage is not a constructor . #22857
Closed
@trivikr trivikr added the backport-requested-v8.x label Sep 15, 2018
trivikr pushed a commit to trivikr/node that referenced this pull request Sep 15, 2018
@apapirovski @trivikr
http: fix undefined error in parser event
a946051
The current check for socket.server[kIncomingMessage] does not
account for the possibility of a socket.server that doesn't
have that property defined. Fix it.

PR-URL: nodejs#20029
Fixes: nodejs#19231
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
@trivikr trivikr mentioned this pull request Sep 15, 2018
[v8.x backport] http: fix undefined error in parser event #22880
Closed
2 tasks done
MylesBorins pushed a commit that referenced this pull request Oct 31, 2018
@apapirovski @MylesBorins
http: fix undefined error in parser event
e3bddee
The current check for socket.server[kIncomingMessage] does not
account for the possibility of a socket.server that doesn't
have that property defined. Fix it.

Backport-PR-URL: #22880
PR-URL: #20029
Fixes: #19231
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
@MylesBorins MylesBorins added backported-to-v8.x and removed backport-requested-v8.x labels Oct 31, 2018
@BethGriggs BethGriggs mentioned this pull request Nov 12, 2018
v8.13.0 proposal #23974
Merged
@beevelop beevelop mentioned this pull request Nov 20, 2018
2018-11-20 Version 8.13.0 'Carbon' (LTS) @MylesBorins prepared by @BethGriggs beevelop/docker-android-nodejs#250
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bnoordhuis bnoordhuis bnoordhuis approved these changes
@jasnell jasnell jasnell approved these changes
@lpinca lpinca lpinca approved these changes
@XadillaX XadillaX XadillaX approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
@trivikr trivikr trivikr approved these changes

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. http Issues and PRs related to the http subsystem.

Projects

None yet

Milestone

10.0.0

Development

Successfully merging this pull request may close these issues.

kIncomingMessage undefined for socket.server

Uh oh!

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

9 participants

@apapirovski @bnoordhuis @BridgeAR @jasnell @lpinca @XadillaX @trivikr @MylesBorins @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.