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

zlib: check if the stream is destroyed before push (8.x) by Fishrock123 · Pull Request #14396 · nodejs/node · GitHub

/ node Public

zlib: check if the stream is destroyed before push (8.x) - #14396

Merged
Fishrock123 merged 1 commit into
nodejs:v8.x-stagingfrom
Fishrock123:v8.x-backport-aa496f4
Jul 20, 2017
Merged

zlib: check if the stream is destroyed before push (8.x)#14396
Fishrock123 merged 1 commit into
nodejs:v8.x-stagingfrom
Fishrock123:v8.x-backport-aa496f4

Conversation

Copy link
Copy Markdown
Contributor

Backport of #14330

Conflicts:
lib/zlib.js

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

Of note, it looks like the line above should also have buffer = null but perhaps that should be addressed separately.

I can confirm the test works on 8.x.

Fishrock123 added v8.x zlib Issues and PRs related to the zlib subsystem. labels Jul 20, 2017
nodejs-github-bot added v8.x zlib Issues and PRs related to the zlib subsystem. labels Jul 20, 2017
Comment thread lib/zlib.js Outdated

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

mcollina 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

LGTM with a nit.

Fishrock123 force-pushed the v8.x-backport-aa496f4 branch 2 times, most recently from dea2d71 to f1254b5 Compare July 20, 2017 17:33
Fishrock123 force-pushed the v8.x-backport-aa496f4 branch from f1254b5 to 330f98b Compare July 20, 2017 17:36
If the stream is destroyed while the transform is still being
applied, push() should not be called, and the internal state
should be cleared.

Refs: koajs/compress#60
PR-URL: nodejs#14330
Backport-PR-URL: nodejs#14396
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

 Conflicts:
	lib/zlib.js
Fishrock123 force-pushed the v8.x-backport-aa496f4 branch from 330f98b to 6fce1a3 Compare July 20, 2017 17:45
Fishrock123 merged commit 6fce1a3 into nodejs:v8.x-staging Jul 20, 2017
Fishrock123 deleted the v8.x-backport-aa496f4 branch July 20, 2017 17:56
Fishrock123 mentioned this pull request Jul 20, 2017
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

zlib Issues and PRs related to the zlib subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL