Skip to content

inspector: handle socket close before close frame - #12937

Merged
eugeneo merged 0 commit into
nodejs:masterfrom
eugeneo:broken_close
May 12, 2017
Merged

inspector: handle socket close before close frame#12937
eugeneo merged 0 commit into
nodejs:masterfrom
eugeneo:broken_close

Conversation

@eugeneo

Copy link
Copy Markdown
Contributor

This change handles clients that respond to close request with a TCP
close instead of close response.

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)

inpsector: updated the protocol handler and added a test case.

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. dont-land-on-v4.x inspector Issues and PRs related to the V8 inspector protocol labels May 9, 2017
@eugeneo

Copy link
Copy Markdown
ContributorAuthor

At least one popular frontend is not properly following WS protocol specification, this change protects from such clients.

Comment threadsrc/inspector_socket.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you move the && to the previous line.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

@eugeneo

Copy link
Copy Markdown
ContributorAuthor

@cjihrig I have addressed the comment. Please take another look.

@eugeneo

Copy link
Copy Markdown
ContributorAuthor

@eugeneoeugeneo closed this May 12, 2017
@eugeneo
eugeneo deleted the broken_close branch May 12, 2017 23:07
@eugeneo
eugeneo merged commit 7c3a23b into nodejs:masterMay 12, 2017
@eugeneo

Copy link
Copy Markdown
ContributorAuthor

Landed as 7c3a23b

anchnk pushed a commit to anchnk/node that referenced this pull request May 19, 2017
This change handles clients that respond to close request with a TCP
close instead of close response.
PR-URL: nodejs#12937
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@jasnelljasnell mentioned this pull request May 28, 2017
@gibfahngibfahn mentioned this pull request Jun 15, 2017
3 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.inspectorIssues and PRs related to the V8 inspector protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@eugeneo@jasnell@alessiodionisi@cjihrig@MylesBorins@nodejs-github-bot