Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added support for .destroy(err, cb) signature#30

Open
mcollina wants to merge 1 commit intomafintosh:masterfrom
mcollina:add-support-for-destroy-cb
Open

Added support for .destroy(err, cb) signature#30
mcollina wants to merge 1 commit intomafintosh:masterfrom
mcollina:add-support-for-destroy-cb

Conversation

Copy link

mcollina commented Jun 12, 2019

Remove the internal destroy implementation and use the readable-stream@3 one.

See mafintosh/pumpify#11.

Copy link
Author

mcollina commented Jun 12, 2019

cc @targos

Copy link

targos commented Jun 12, 2019 *
edited
Loading

I'm not familiar enough with stream implementation to review but thanks, I confirm this fixes mafintosh/pumpify#11

Copy link
Contributor

vweevers commented Jun 12, 2019

@mcollina We can also remove this from the constructor now:

this.destroyed = false

Copy link
Owner

mafintosh commented Jun 12, 2019

Added a quick fix to master. Need to review this doesn't break all my stuff as it changes the behaviour.

Copy link
Author

mcollina commented Jun 12, 2019

It doesn't, or it's not covered by the tests. All test suite for this pass without changes.

Copy link

ErlendFax commented Sep 27, 2021 *
edited
Loading

@mafintosh @mcollina @vweevers Is it possible to get this merged?

This package is used by google storage and we experience crashes when uploading files. I belive this PR fixes it.

Copy link
Owner

mafintosh commented Sep 27, 2021 via email

I'll look into it this week
...
On 27 Sep 2021, at 09.50, Erlend Faxvaag ***@***.***> wrote: @mafintosh @mcollina @vweevers Is it possible to get this merged? This package is used by google storage and we experience crashes when uploading files - caused by this. -- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Copy link

ErlendFax commented Sep 29, 2021

I might have jumped to conclusions here. When playing around it looked like this PR fixed it. I'm new to js and node.

I described the overlaying error in an issue at nodejs google storage repo, and also created another new issue here with steps to reproduce.

Btw, the first comment here says:

Remove the internal destroy implementation

but it looks like .destroy(...) was removed and ._destroy(...) was kept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants