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 — test,doc: address http2 connection abort/network error handling by addaleax · Pull Request #21861 · nodejs/node

Conversation

@addaleax

@addaleax addaleax commented Jul 17, 2018

Copy link
Copy Markdown
Member
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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
addaleax added 2 commits July 18, 2018 01:22
@addaleax
test: fix http2 connection abort test
7f998d9
Refs: nodejs#21836
Refs: nodejs#21561
@addaleax
doc: document http2 network error behaviour
4df7e81
Fixes: nodejs#21836
@addaleax addaleax added doc Issues and PRs related to Node.js documentation. test Issues and PRs related to Node.js core tests and test infrastructure. http2 Issues and PRs related to the http2 subsystem. labels Jul 17, 2018
@nodejs-github-bot

nodejs-github-bot commented Jul 17, 2018

Copy link
Copy Markdown
Collaborator

@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/298/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott
Trott reviewed Jul 17, 2018
View reviewed changes
Comment thread doc/api/http2.md Outdated
```

Even though HTTP/2 streams and network sockets are not in a 1:1 correspondence,
a network error will destroy each individual streams and must be handled on the

@Trott Trott Jul 17, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nit: streams -> stream?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@addaleax addaleax Jul 18, 2018

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

thanks, done!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@addaleax
fixup! doc: document http2 network error behaviour
65c8643
jasnell
jasnell approved these changes Jul 18, 2018
View reviewed changes
@Trott

Trott commented Jul 18, 2018

Copy link
Copy Markdown
Member

@nodejs/http2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vsemozhetbyt
vsemozhetbyt reviewed Jul 18, 2018
View reviewed changes
Comment thread doc/api/http2.md Outdated
'content-type': 'text/html',
':status': 200
});
stream.on('error', (error) => console.log(error));

@vsemozhetbyt vsemozhetbyt Jul 18, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

console.log -> console.error?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@vsemozhetbyt vsemozhetbyt Jul 18, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Or maybe just:

stream.on('error', console.error);

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@addaleax addaleax Jul 18, 2018

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

👍 Switched to the first suggestion – I’d prefer to give a user-defined function here, since that is a bit closer to what one would actually do in real-world code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vsemozhetbyt reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
mcollina
mcollina approved these changes Jul 18, 2018
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
trivikr
trivikr approved these changes Jul 18, 2018
View reviewed changes
@addaleax
fixup! doc: document http2 network error behaviour
fd8a861
@addaleax addaleax added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jul 18, 2018
@addaleax

addaleax commented Jul 18, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/15930/ (edit: ✔️)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax mentioned this pull request Jul 18, 2018
http2: remove unused nghttp2 error list #21827
Closed
2 tasks done
trivikr
trivikr approved these changes Jul 18, 2018
View reviewed changes
lpinca
lpinca approved these changes Jul 19, 2018
View reviewed changes
Comment thread doc/api/http2.md
'content-type': 'text/html',
':status': 200
});
stream.on('error', (error) => console.error(error));

@lpinca lpinca Jul 19, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nit: how about passing console.error directly? It's already bound. If this is the prevalent usage in the docs, ignore this comment.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@vsemozhetbyt vsemozhetbyt Jul 19, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It seems this is a deliberate decision.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

addaleax and lpinca reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
JungMinu
JungMinu approved these changes Jul 21, 2018
View reviewed changes
@addaleax

addaleax commented Jul 23, 2018

Copy link
Copy Markdown
Member Author

Landed in daa15b5, 0e4cbde

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax closed this Jul 23, 2018
@addaleax
addaleax deleted the http2-aborted-connection branch July 23, 2018 15:05
addaleax added a commit that referenced this pull request Jul 23, 2018
@addaleax
test: fix http2 connection abort test
daa15b5
Refs: #21836
Refs: #21561

PR-URL: #21861
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
addaleax added a commit that referenced this pull request Jul 23, 2018
@addaleax
doc: document http2 network error behaviour
0e4cbde
Fixes: #21836

PR-URL: #21861
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
targos pushed a commit that referenced this pull request Jul 24, 2018
@addaleax @targos
test: fix http2 connection abort test
eea199b
Refs: #21836
Refs: #21561

PR-URL: #21861
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
targos pushed a commit that referenced this pull request Jul 24, 2018
@addaleax @targos
doc: document http2 network error behaviour
c3d9000
Fixes: #21836

PR-URL: #21861
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
@targos targos mentioned this pull request Jul 31, 2018
v10.8.0 proposal #22040
Merged
This was referenced Aug 1, 2018
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-nodejs#212
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#223
Closed
This was referenced Aug 1, 2018
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#224
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#225
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#226
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#227
Closed
kjin pushed a commit to kjin/node that referenced this pull request Aug 23, 2018
@addaleax @kjin
doc: document http2 network error behaviour
8b03609
Fixes: nodejs#21836

PR-URL: nodejs#21861
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
@kjin kjin mentioned this pull request Sep 19, 2018
[8.x] Backport http2 changes from 10.x #22850
Closed
3 of 4 tasks
@addaleax addaleax mentioned this pull request Oct 20, 2018
http2: simplify timeout tracking #19206
Closed
2 tasks done
This was referenced Jun 18, 2021
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 ron-a20/node#34
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 aliceUnhinged613/node#26
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 2.19.25 meghasfdc/node#36
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 2.19.25 kissofire/node#36
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 137717unity/node#27
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Trott Trott Trott left review comments
@mcollina mcollina mcollina approved these changes
@jasnell jasnell jasnell approved these changes
@lpinca lpinca lpinca approved these changes
@JungMinu JungMinu JungMinu approved these changes
@trivikr trivikr trivikr approved these changes
+1 more reviewer
@vsemozhetbyt vsemozhetbyt vsemozhetbyt left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. doc Issues and PRs related to Node.js documentation. http2 Issues and PRs related to the http2 subsystem. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@addaleax @nodejs-github-bot @Trott @mcollina @jasnell @lpinca @JungMinu @vsemozhetbyt @trivikr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.