Skip to content

stream: emit finish when using writev and cork

In Writable, 'finish' was not emitted when using writev() and cork() in the event of an Error. This commit makes it consistent with the write() path, which emits 'finish'.

Fixes: https://github.com/nodejs/node/issues/11121

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

stream

Merge request reports

Loading