Skip to content

[14.x] stream: fix regression on duplex end - #36375

Closed
enov wants to merge 1 commit into
nodejs:v14.x-stagingfrom
enov:backport-35941-to-v14.x
Closed

[14.x] stream: fix regression on duplex end#36375
enov wants to merge 1 commit into
nodejs:v14.x-stagingfrom
enov:backport-35941-to-v14.x

Conversation

@enov

@enovenov commented Dec 4, 2020

Copy link
Copy Markdown

Backport
Decide the return status of writeOrBuffer before
calling stream.write which can reset state.length

Refs: #35941
Fixes: #35926

Based off @mmomtchev 's work in #36229 , rebased on v14.x-staging

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

Backport
Decide the return status of writeOrBuffer before
calling stream.write which can reset state.length
Refs: nodejs#35941Fixes: nodejs#35926

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@BethGriggsBethGriggs added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 7, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 7, 2020
@nodejs-github-bot

This comment has been minimized.

@BethGriggsBethGriggs added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 8, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 8, 2020
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

nodejs-github-bot commented Dec 8, 2020

Copy link
Copy Markdown
Collaborator

BethGriggs pushed a commit that referenced this pull request Dec 9, 2020
Decide the return status of writeOrBuffer before
calling stream.write which can reset state.length
Add unit test for #35926
Refs: #35926
Backport-PR-URL: #36375
PR-URL: #35941Fixes: #35926
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@BethGriggs

Copy link
Copy Markdown
Member

Landed in 5904671

BethGriggs pushed a commit that referenced this pull request Dec 10, 2020
Decide the return status of writeOrBuffer before
calling stream.write which can reset state.length
Add unit test for #35926
Refs: #35926
Backport-PR-URL: #36375
PR-URL: #35941Fixes: #35926
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this pull request Dec 15, 2020
Decide the return status of writeOrBuffer before
calling stream.write which can reset state.length
Add unit test for #35926
Refs: #35926
Backport-PR-URL: #36375
PR-URL: #35941Fixes: #35926
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@enov@nodejs-github-bot@BethGriggs@mcollina@mmomtchev