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_common ParserIncomingMessage fails to check for undefined on parser.socket.server[kIncomingMessage] · Issue #20151 · nodejs/node

_http_common ParserIncomingMessage fails to check for undefined on parser.socket.server[kIncomingMessage] #20151

New issue
Copy link
New issue
Copy link
Closed
Closed
_http_common ParserIncomingMessage fails to check for undefined on parser.socket.server[kIncomingMessage]#20151
Copy link
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.httpIssues and PRs related to the http subsystem.

Description

@nyxtom
nyxtom
opened on Apr 19, 2018
Issue body actions

node/lib/_http_common.js

Lines 78 to 82 in 15e41a9

var ParserIncomingMessage = parser.socket && parser.socket.server ?
parser.socket.server[kIncomingMessage] : IncomingMessage;
parser.incoming = new ParserIncomingMessage(parser.socket);
parser.incoming.httpVersionMajor = versionMajor;

Due to this line of code, if parser.socket.server[kIncomingMessage] is undefined, an error will be thrown on the line below where the ParserIncomingMessage is constructed. A simple additional check here would solve this issue. A few libraries have cropped this up in socket.io, ws and some others that weren't happening in previous versions of node.

Node version: 9.6.0
Platform: OSX

Activity

  1. apapirovski commented on Apr 19, 2018

    @apapirovski
    apapirovski
    on Apr 19, 2018
    Contributor
    More actions

    This will be in the 10.0.0 release. See #20029 for a fix.

    Duplicate of #19231

    Reacted by nyxtom
  2. apapirovski
    closed this as completedon Apr 19, 2018
  3. apapirovski
    added
    httpIssues and PRs related to the http subsystem.
    duplicateIssues and PRs that are duplicates of other issues or PRs.
    on Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.httpIssues and PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.