stream: add FileHandle support to Read/WriteStream#35922
Closed
mmomtchev wants to merge 20 commits intonodejs:masterfrom
Closed
stream: add FileHandle support to Read/WriteStream#35922mmomtchev wants to merge 20 commits intonodejs:masterfrom
mmomtchev wants to merge 20 commits intonodejs:masterfrom
Conversation
richardlau
reviewed
Nov 2, 2020
aduh95
reviewed
Nov 2, 2020
Contributor
aduh95
left a comment
There was a problem hiding this comment.
I've made a few suggestions to use primordials when possible, PTAL.
addaleax
reviewed
Nov 2, 2020
aduh95
reviewed
Nov 2, 2020
Member
|
Our file handles are pretty huge anyway and I am not thrilled about adding all those extra properties to them, I don't really understand the use case :/ I'm -0 but won't block (good job on the actual changes, the code itself looks good 👍 ). |
Contributor
Author
#35862 - this is the use case |
aduh95
reviewed
Nov 2, 2020
addaleax
reviewed
Nov 2, 2020
aduh95
reviewed
Nov 2, 2020
Trott
reviewed
Nov 13, 2020
Trott
approved these changes
Nov 13, 2020
Member
|
(Needs a rebase.) |
488fa5b to
0725ed0
Compare
c231f4b to
8d0a717
Compare
Collaborator
Contributor
|
Landed in 0fd121e |
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
@ronag I don't see it? What is the function sequence? |
Member
|
@mmomtchev you are right. There is no problem here. |
2 tasks
Merged
danielleadams
added a commit
that referenced
this pull request
Dec 7, 2020
PR-URL: #36435 Notable changes: * child_processes: * add AbortSignal support (Benjamin Gruenbaum) (#36308) * deps: * update ICU to 68.1 (Michaël Zasso) (#36187) * events: * support signal in EventTarget (Benjamin Gruenbaum) (#36258) * graduate Event, EventTarget, AbortController (James M Snell) (#35949) * http: * enable call chaining with setHeader() (pooja d.p) (#35924) * module: * add isPreloading indicator (James M Snell) (#36263) * stream: * support abort signal (Benjamin Gruenbaum) (#36061) * add FileHandle support to Read/WriteStream (Momtchil Momtchev) (#35922) * worker: * add experimental BroadcastChannel (James M Snell) (#36271)
cjihrig
pushed a commit
to cjihrig/node
that referenced
this pull request
Dec 8, 2020
Support creating a Read/WriteStream from a FileHandle instead of a raw file descriptor Add an EventEmitter to FileHandle with a single 'close' event. Fixes: nodejs#35240 PR-URL: nodejs#35922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
danielleadams
added a commit
that referenced
this pull request
Dec 9, 2020
PR-URL: #36435 Notable changes: * child_processes: * add AbortSignal support (Benjamin Gruenbaum) (#36308) * deps: * update ICU to 68.1 (Michaël Zasso) (#36187) * events: * support signal in EventTarget (Benjamin Gruenbaum) (#36258) * graduate Event, EventTarget, AbortController (James M Snell) (#35949) * http: * enable call chaining with setHeader() (pooja d.p) (#35924) * module: * add isPreloading indicator (James M Snell) (#36263) * stream: * support abort signal (Benjamin Gruenbaum) (#36061) * add FileHandle support to Read/WriteStream (Momtchil Momtchev) (#35922) * worker: * add experimental BroadcastChannel (James M Snell) (#36271)
danielleadams
added a commit
that referenced
this pull request
Dec 9, 2020
PR-URL: #36435 Notable changes: * child_processes: * add AbortSignal support (Benjamin Gruenbaum) (#36308) * deps: * update ICU to 68.1 (Michaël Zasso) (#36187) * events: * support signal in EventTarget (Benjamin Gruenbaum) (#36258) * graduate Event, EventTarget, AbortController (James M Snell) (#35949) * http: * enable call chaining with setHeader() (pooja d.p) (#35924) * module: * add isPreloading indicator (James M Snell) (#36263) * stream: * support abort signal (Benjamin Gruenbaum) (#36061) * add FileHandle support to Read/WriteStream (Momtchil Momtchev) (#35922) * worker: * add experimental BroadcastChannel (James M Snell) (#36271)
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.
Support creating a Read/WriteStream from a
FileHandle instead of a raw file descriptor
Add an EventEmitter to FileHandle with a single
'close' event
Refs: #35240
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes