Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with close event always being emitted #408

Merged
merged 1 commit into from
Aug 12, 2018

Conversation

addaleax
Copy link
Contributor

@addaleax addaleax commented Jul 26, 2018

This addresses a changed behaviour in Node 10, resulting
from the fact that the close event is always being emitted
now. This would have lead to the place_binary() callback being
called twice when the HTTP request failed (with e.g. a 404).

Refs: nodejs/node#21063
Fixes: #391

Edit: The original breakage was reverted in Node 10.8.0 since it was an unintentional semver-major change, but will be kept for Node 11+.

This addresses a changed behaviour in Node 10, resulting
from the fact that the `close` event is always being emitted
now. This would have lead to the `place_binary()` callback being
called twice when the HTTP request failed (with e.g. a 404).

Refs: nodejs/node#21063
Fixes: mapbox#391
@springmeyer springmeyer added this to the v0.10.3 milestone Aug 12, 2018
@springmeyer
Copy link
Contributor

Thank you. Will tag a new release with this in a moment: v0.10.3

@springmeyer springmeyer merged commit e0e1f43 into mapbox:master Aug 12, 2018
@springmeyer
Copy link
Contributor

v0.10.3

Actually, will be v0.11.0

subtly added a commit to subtly/node-sqlite3 that referenced this pull request Aug 29, 2018
hyj1991 pushed a commit to X-Profiler/node-pre-gyp that referenced this pull request Jun 16, 2023
Fix issue with `close` event always being emitted
Sign up for free to 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.

it builds from source twice when server hosting binaries responds with 403
2 participants