-
Notifications
You must be signed in to change notification settings - Fork 5k
fs: back createWriteStream(path) with a FileSink that adopts the fd #35993
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
Open
robobun
wants to merge
32
commits into
main
Choose a base branch
from
farm/d9a91b9d/fs-writestream-filesink
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
20de013
fs: buffer createWriteStream(path) writes through a FileSink
robobun 4727433
fs: coalesce createWriteStream(path) writes via synchronous writeSync…
robobun 1a65e64
[autofix.ci] apply automated fixes
autofix-ci[bot] ce48dcd
trim comments
robobun b240969
gate the writeSync path on fd == null so caller-supplied pipe fds kee…
robobun 396cce8
trim comment
robobun 1c951e8
recheck destroyed before the deferred writeAllSync callback
robobun 66df641
fstat the opened fd and keep the thread-pool path for non-regular files
robobun 3817d4a
route the first _writev batch through fs.write when the patch is dete…
robobun 78c733f
drain the FIFO in the thread-pool-path test so the child exits cleanly
robobun bf0a1c1
fs: batch createWriteStream writes via _writev on the thread pool
robobun b59aa0c
trim comment
robobun d811091
fall back to writevAll for a writev-only custom fs; fix stale test co…
robobun d5c0711
fs: back createWriteStream(path) with a FileSink that adopts the fd
robobun 2e70c65
dup a pollable caller-supplied fd so each FileSink keeps its own epol…
robobun 973474a
trim comment
robobun a3883a9
propagate sink.write() rejections; gate FileSink on autoClose; drop s…
robobun cb26f1f
concat _writev chunks into one sink.write; await sink.end() in close()
robobun b47349c
add FileSink.writev and use it in WriteStream _writev; fire on_close …
robobun 075d741
PosixStreamingWriter::writev: build an iovec and call pwritev2(RWF_NO…
robobun 5cd43a3
trim comment
robobun b40bde7
[autofix.ci] apply automated fixes
autofix-ci[bot] 3e1312a
route try_write's File arm through write_nonblocking
robobun 3731912
review fixes: iovec cursor; Backpressure in default writev_bytes; Win…
robobun 0b699d1
[autofix.ci] apply automated fixes
autofix-ci[bot] b9e3848
on_auto_flush: keep flushing when done with pending data; move close_…
robobun d6ff1d1
clippy: SAFETY comment placement; use ? for dup_with_flags
robobun fec2342
Windows: dup borrowed pipe/tty before uv_pipe_open so end() can close…
robobun 714bdd3
shorten dup-rationale comments
robobun f9d4f11
test: wire server 'error' via events.once for the named-pipe listen
robobun 4531be8
writev: route FileType::Pipe through writev_buffered so a blocking pi…
robobun 0fe7392
js_writev: acquire this after accessor JS runs; setup() error path: l…
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.