Uh oh!
There was an error while loading. Please reload this page.
stream: eos more accurate writable and readable detection - #29409
Closed
ronag wants to merge 2 commits into
Closed
Conversation
cclauss
commented
Sep 2, 2019
Contributor
The value of stream.readable and stream.writable should not be used to detect whether a stream is Writable or Readable. Refs: nodejs#29395
ronagforce-pushed
the
eos-writable-readable
branch
from
September 3, 2019 11:47
afe332c to
5b6e33aCompareFishrock123
commented
Sep 5, 2019
Contributor
Might it be useful to publicly expose these? |
ronag
commented
Sep 5, 2019
MemberAuthor
@Fishrock123: Something like? const{ isReadable, isWritable }=require('stream'); |
Fishrock123
commented
Sep 5, 2019
Contributor
@ronag Yes, although I'd like to hear others chime in on the stability of such functions. |
Trott
commented
Sep 7, 2019
Member
@nodejs/streams |
jasnell
approved these changes
Sep 11, 2019
nodejs-github-bot
commented
Sep 12, 2019
Collaborator
nodejs-github-bot
commented
Sep 13, 2019
Collaborator
ronag
commented
Sep 20, 2019
MemberAuthor
@Trott: This looks ready? |
Trott
commented
Sep 22, 2019
Member
Landed in 8709a40 |
targos
commented
Sep 23, 2019
Member
Should this be backported to |
MemberAuthor
@targos: Never done it before but I will take a look. Will try to have something ready this week. |
MemberAuthor
I'd very much like to have this merged and included in such a backport, #29664. |
MylesBorins
commented
Jan 10, 2020
Contributor
quick ping re: backport |
sxa
commented
Jan 13, 2020
Member
@MylesBorins Coincidentally I started looking at backporting this one on Friday - PR ready now |
sxa pushed a commit
to sxa/node
that referenced
this pull request
Jan 13, 2020
The value of stream.readable and stream.writable should not be used to detect whether a stream is Writable or Readable. PR-URL: nodejs#29409 Backport-PR-URL: nodejs#31345
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The value of stream.readable and stream.writable should not
be used to detect whether a stream is Writable or Readable.
Refs: #29395
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes