Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

http2: improve error handling and test cases #134

Closed
wants to merge 3 commits into from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented May 17, 2017

Improve error handling throughout and make sure that Http2Session and Http2Stream methods work before the client is fully connected, with reasonable error handling.

Bunch of new test cases

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)

http2

Error handling from the binding layer was not very sophisticated. This
changes things such that errors on generally synchronous APIs are
thrown, while only errors that happen in async operations end up
in error events. This still may need to evolve but this is closer
to what it should be. Also, as much as possible, hide the details
of NGHTTP2 specific errors using Node.js specific error codes and
messages.

There is still more to be done here.
@jasnell
Copy link
Member Author

jasnell commented May 17, 2017

@mcollina ... I'd like your thoughts on this. It may be better to push most of the errors to the error event rather than throw synchronously for everything except argument validation. This PR is currently a WIP towards making improvements...

jasnell added 2 commits May 17, 2017 17:57
Ensure that session and stream methods work before connect
@jasnell jasnell changed the title http2: improve error handling http2: improve error handling and test cases May 18, 2017
mcollina

This comment was marked as off-topic.

jasnell added a commit that referenced this pull request May 18, 2017
@jasnell
Copy link
Member Author

jasnell commented May 18, 2017

Landed

@jasnell jasnell closed this May 18, 2017
jasnell added a commit that referenced this pull request May 19, 2017
jasnell added a commit that referenced this pull request May 31, 2017
jasnell added a commit to jasnell/http2-1 that referenced this pull request Jun 22, 2017
jasnell added a commit to jasnell/http2-1 that referenced this pull request Jul 10, 2017
jasnell added a commit to jasnell/http2-1 that referenced this pull request Jul 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants