-
Notifications
You must be signed in to change notification settings - Fork 30k
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
stream: eos more accurate writable and readable detection #29409
Conversation
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
Might it be useful to publicly expose these? |
@Fishrock123: Something like? const { isReadable, isWritable } = require('stream'); |
@ronag Yes, although I'd like to hear others chime in on the stability of such functions. |
@nodejs/streams |
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
@Trott: This looks ready? |
The value of stream.readable and stream.writable should not be used to detect whether a stream is Writable or Readable. Refs: #29395 PR-URL: #29409 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in 8709a40 |
Should this be backported to |
@targos: Never done it before but I will take a look. Will try to have something ready this week. |
I'd very much like to have this merged and included in such a backport, #29664. |
quick ping re: backport |
@MylesBorins Coincidentally I started looking at backporting this one on Friday - PR ready now |
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
The value of stream.readable and stream.writable should not be used to detect whether a stream is Writable or Readable. Refs: #29395 PR-URL: #29409 Backport-PR-URL: #31345 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
The value of stream.readable and stream.writable should not be used to detect whether a stream is Writable or Readable. Refs: #29395 PR-URL: #29409 Backport-PR-URL: #31345 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
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