stream: eos more accurate writable and readable detection#29409
Closed
ronag wants to merge 2 commits intonodejs:masterfrom
Closed
stream: eos more accurate writable and readable detection#29409ronag wants to merge 2 commits intonodejs:masterfrom
ronag wants to merge 2 commits intonodejs:masterfrom
Conversation
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
afe332c to
5b6e33a
Compare
Contributor
|
Might it be useful to publicly expose these? |
Member
Author
|
@Fishrock123: Something like? const { isReadable, isWritable } = require('stream'); |
Contributor
|
@ronag Yes, although I'd like to hear others chime in on the stability of such functions. |
Member
|
@nodejs/streams |
jasnell
approved these changes
Sep 11, 2019
Collaborator
Collaborator
Member
Author
|
@Trott: This looks ready? |
Member
|
Landed in 8709a40 |
Member
|
Should this be backported to |
Member
Author
|
@targos: Never done it before but I will take a look. Will try to have something ready this week. |
Member
Author
|
I'd very much like to have this merged and included in such a backport, #29664. |
Contributor
|
quick ping re: backport |
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 free
to 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