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

doc: clarify stream errors while reading and writing #29653

Closed
wants to merge 11 commits into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Sep 22, 2019

Errors should be propagated through destroy(err) for readable and callback for writable, anything else is undefined behaviour.

Refs: #29584

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem. labels Sep 22, 2019
@ronag ronag force-pushed the fix-doc-readable-error branch from ce06247 to 9c91dd2 Compare September 22, 2019 14:13
@ronag
Copy link
Member Author

ronag commented Sep 22, 2019

@jasnell @mcollina Hope this makes more sense.

@ronag ronag changed the title doc: clarify stream errors while reading doc: clarify stream errors while reading and writing Sep 22, 2019
Errors should be propagated through destroy(err), anything else
is basically undefined behaviour.
@ronag ronag force-pushed the fix-doc-readable-error branch 3 times, most recently from df3867e to ee486d4 Compare September 22, 2019 14:23
@ronag ronag force-pushed the fix-doc-readable-error branch from ee486d4 to 25c4396 Compare September 22, 2019 14:47
@trivikr
Copy link
Member

trivikr commented Sep 22, 2019

Fishrock123 added a commit to Fishrock123/bob that referenced this pull request Sep 23, 2019
Copy link
Contributor

@Fishrock123 Fishrock123 left a comment

Choose a reason for hiding this comment

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

This seems like the correct, better approach to me. I'd really like other streams folks confirmation though.

doc/api/stream.md Outdated Show resolved Hide resolved
doc/api/stream.md Outdated Show resolved Hide resolved
doc/api/stream.md Outdated Show resolved Hide resolved
doc/api/stream.md Outdated Show resolved Hide resolved
ronag and others added 2 commits September 25, 2019 18:11
Co-Authored-By: James M Snell <[email protected]>
Co-Authored-By: James M Snell <[email protected]>
doc/api/stream.md Outdated Show resolved Hide resolved
doc/api/stream.md Outdated Show resolved Hide resolved
doc/api/stream.md Outdated Show resolved Hide resolved
doc/api/stream.md Outdated Show resolved Hide resolved
ronag and others added 2 commits September 25, 2019 20:08
Co-Authored-By: Vse Mozhet Byt <[email protected]>
Co-Authored-By: Vse Mozhet Byt <[email protected]>
ronag and others added 3 commits September 25, 2019 20:09
test.js Outdated Show resolved Hide resolved
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

LGTM

@Trott
Copy link
Member

Trott commented Sep 27, 2019

Trott pushed a commit that referenced this pull request Sep 27, 2019
Errors should be propagated through destroy(err). Anything else
is basically undefined behaviour.

PR-URL: #29653
Refs: #29584
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@Trott
Copy link
Member

Trott commented Sep 27, 2019

Landed in 7223ce2

@Trott Trott closed this Sep 27, 2019
targos pushed a commit that referenced this pull request Oct 1, 2019
Errors should be propagated through destroy(err). Anything else
is basically undefined behaviour.

PR-URL: #29653
Refs: #29584
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.