Skip to content
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

fs: make sure to write entire buffer #42434

Closed
wants to merge 13 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
ronag committed Mar 22, 2022
commit a5bf600b1b51a3df594851022034d965d475d264
2 changes: 1 addition & 1 deletion lib/internal/fs/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ function writeAll(data, pos, cb, retries = 0) {

function writevAll(chunks, pos, cb, retries = 0) {
if (retries > 5) {
process.nextTick(() => cb(new Error('write failed')))
process.nextTick(() => cb(new Error('writev failed')))
}

this[kFs].writev(this.fd, chunks, this.pos, (er, bytesWritten) => {
Expand Down