FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

zlib: emits 'close' event after readble 'end' by tadjik1 · Pull Request #32050 · nodejs/node · GitHub

/ node Public

zlib: emits 'close' event after readble 'end' - #32050

Closed
tadjik1 wants to merge 1 commit into
nodejs:masterfrom
tadjik1:issue-32023-zlib-emits-close
Closed

zlib: emits 'close' event after readble 'end'#32050
tadjik1 wants to merge 1 commit into
nodejs:masterfrom
tadjik1:issue-32023-zlib-emits-close

Conversation

tadjik1 commented Mar 2, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

Hey there,
as far as I understand this PR breaks behaviour when zlib streams emit close event in case of successful end.

Since emitting close is the part of Readable.destroy implementation - .destroy must be called on ZlibBase instance. In this case (case of successful finish) this.on('end') should be sufficient.

Fixes: #32023

\cc @addaleax

Call the close method after readable 'end' so that 'close' will be
emitted afterwards.

Fixes: nodejs#32023
nodejs-github-bot added the zlib Issues and PRs related to the zlib subsystem. label Mar 2, 2020

addaleax 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you!

Copy link
Copy Markdown
Collaborator

tadjik1 commented Mar 2, 2020
edited
Loading

Copy link
Copy Markdown
Contributor Author

@addaleax thanks for such a quick response!
I have a question regarding failing CI: one test fails on MacOS Catalina test/sequential/test-timers-blocking-callback.js but it doesn't seem relevant to my changes, more like a flaky test.
Can we re-trigger this jenkins build to make sure that problem is somewhere in these changes?

addaleax commented Mar 2, 2020

Copy link
Copy Markdown
Member

Can we re-trigger this jenkins build to make sure that problem is somewhere in these changes?

Sure, done!

Copy link
Copy Markdown
Collaborator

aks- 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

<3

BridgeAR added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Mar 9, 2020

Copy link
Copy Markdown
Member

Landed in 0c545f0

addaleax closed this Mar 11, 2020
addaleax pushed a commit that referenced this pull request Mar 11, 2020
Call the close method after readable 'end' so that 'close' will be
emitted afterwards.

Fixes: #32023

PR-URL: #32050
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 11, 2020
Call the close method after readable 'end' so that 'close' will be
emitted afterwards.

Fixes: #32023

PR-URL: #32050
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

MylesBorins commented Mar 11, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

This had landed on 13.x and was backed out as it seemed to break CI

might be best to land as a backport PR

MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Mar 11, 2020
Call the close method after readable 'end' so that 'close' will be
emitted afterwards.

Fixes: nodejs#32023

PR-URL: nodejs#32050
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
ronag pushed a commit to nxtedition/node that referenced this pull request Mar 11, 2020
Call the close method after readable 'end' so that 'close' will be
emitted afterwards.

Fixes: nodejs#32023

PR-URL: nodejs#32050
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
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

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. zlib Issues and PRs related to the zlib subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.on('close') for a readable stream stops working when going from node 12.14.0 to 12.16.1

8 participants


Back | FazBrowse Home | New Git URL