Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport-v8.x] http: add rawPacket in err of clientError event #18370

Closed
wants to merge 1 commit into from

Conversation

XadillaX
Copy link
Contributor

@XadillaX XadillaX commented Jan 25, 2018

The rawPacket is the current buffer that just parsed. Adding this
buffer to the error object of clientError event is to make it possible
that developers can log the broken packet.

PR-URL: #17672
Reviewed-By: Anna Henningsen [email protected]
Reviewed-By: Ben Noordhuis [email protected]
Reviewed-By: James M Snell [email protected]

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

http

The `rawPacket` is the current buffer that just parsed. Adding this
buffer to the error object of `clientError` event is to make it possible
that developers can log the broken packet.

PR-URL: nodejs#17672
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@nodejs-github-bot nodejs-github-bot added http Issues or PRs related to the http subsystem. v8.x labels Jan 25, 2018
@gibfahn gibfahn self-assigned this Feb 6, 2018
@XadillaX
Copy link
Contributor Author

XadillaX commented Feb 8, 2018

XadillaX added a commit that referenced this pull request Feb 8, 2018
The `rawPacket` is the current buffer that just parsed. Adding this
buffer to the error object of `clientError` event is to make it possible
that developers can log the broken packet.

PR-URL: #18370
Reviewed-By: Ruben Bridgewater <[email protected]>
@XadillaX
Copy link
Contributor Author

XadillaX commented Feb 8, 2018

landed on a71c7bb

@XadillaX XadillaX closed this Feb 8, 2018
gibfahn pushed a commit that referenced this pull request Feb 8, 2018
The `rawPacket` is the current buffer that just parsed. Adding this
buffer to the error object of `clientError` event is to make it possible
that developers can log the broken packet.

PR-URL: #17672
Backport-PR-URL: #18370
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@gibfahn
Copy link
Member

gibfahn commented Feb 8, 2018

@XadillaX if you would like to help with backporting we (current backporters) would be extremely grateful, and I'd be happy to pair on the process and get you onboarded.

However otherwise please don't land commits on staging branches, it makes it hard for the person doing the release to work out what is going on with the branch, and it's also a bit different to how we land things on master. Check out the commit message in 56401a4 for details.

If I'm not getting round to landing it feel free to ping me in the issue.

Relanded (with the right metadata) in 56401a4

@XadillaX
Copy link
Contributor Author

XadillaX commented Feb 8, 2018

@gibfahn Thx very much and sorry for what I have done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants