★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/18966Nouvelle recherche | Portail wanayoo
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

http2: refer to stream errors by name #18966

Closed
wants to merge 2 commits into from

Conversation

Copy link
Member

@addaleax addaleax commented Feb 23, 2018

Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.

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)

@nodejs/http2

@nodejs-github-bot nodejs-github-bot added c++ lib / src labels Feb 23, 2018
@joyeecheung
Copy link
Member

@joyeecheung joyeecheung commented Feb 24, 2018

@joyeecheung
Copy link
Member

@joyeecheung joyeecheung commented Feb 24, 2018

There is a test missing the update

  not ok 2039 sequential/test-http2-max-session-memory
    ---
    duration_ms: 0.269
    severity: fail
    stack: |-
      (node:12676) ExperimentalWarning: The http2 module is an experimental API.
      assert.js:74
        throw new AssertionError(obj);
        ^

      AssertionError [ERR_ASSERTION]: 'Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM' strictEqual 'Stream closed with error code 11'
          at ClientHttp2Stream.innerFn (/home/iojs/build/workspace/node-test-commit-linux-containered/nodes/ubuntu1604_sharedlibs_openssl102_x64/test/common/index.js:701:16)
          at ClientHttp2Stream.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux-containered/nodes/ubuntu1604_sharedlibs_openssl102_x64/test/common/index.js:476:15)
          at ClientHttp2Stream.emit (events.js:131:13)
          at emitErrorNT (internal/streams/destroy.js:66:8)
          at process._tickCallback (internal/process/next_tick.js:115:19)

addaleax added 2 commits Feb 24, 2018
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.
@addaleax
Copy link
Member Author

@addaleax addaleax commented Feb 24, 2018

@BridgeAR BridgeAR added the author ready label Mar 1, 2018
@apapirovski
Copy link
Member

@apapirovski apapirovski commented Mar 4, 2018

Landed in 7bc8eb8

@apapirovski apapirovski closed this Mar 4, 2018
apapirovski pushed a commit that referenced this issue Mar 4, 2018
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.

PR-URL: #18966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@MylesBorins
Copy link
Member

@MylesBorins MylesBorins commented Mar 6, 2018

Should this be backported to v9.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label.

@targos targos added backport-requested-v9.x and removed author ready backport-requested-v9.x labels Mar 24, 2018
targos pushed a commit to targos/node that referenced this issue Mar 24, 2018
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.

PR-URL: nodejs#18966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
targos pushed a commit that referenced this issue Mar 30, 2018
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.

Backport-PR-URL: #19579
PR-URL: #18966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@targos targos mentioned this pull request Apr 4, 2018
MayaLekova pushed a commit to MayaLekova/node that referenced this issue May 8, 2018
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.

PR-URL: nodejs#18966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
addaleax added a commit that referenced this issue Jun 29, 2018
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.

PR-URL: #18966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@addaleax addaleax deleted the http2-error-code-name branch Jun 29, 2018
@MylesBorins MylesBorins mentioned this pull request Jul 9, 2018
rvagg pushed a commit that referenced this issue Aug 16, 2018
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.

PR-URL: #18966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ lib / src
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet