GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [v10.x] Revert "http: always emit close on req and res" by targos · Pull Request #21809 · nodejs/node

Conversation

@targos

@targos targos commented Jul 14, 2018

Copy link
Copy Markdown
Member

This also reverts 2a9c833 which modifies the added file and line.

Refs: #20611 (comment)

/cc @nodejs/tsc

The change landed in v10.2.0. I suppose there is a risk to break code that is now relying on it?

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@targos targos added http Issues and PRs related to the http subsystem. v10.x labels Jul 14, 2018
@nodejs-github-bot

nodejs-github-bot commented Jul 14, 2018

Copy link
Copy Markdown
Collaborator

@targos build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/273/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added http Issues and PRs related to the http subsystem. v10.x labels Jul 14, 2018
@mcollina

mcollina commented Jul 14, 2018

Copy link
Copy Markdown
Member

I would prefer if this is a @nodejs/tsc decision. Should we put it in the agenda for next week?

benjamingr and bricss reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos added the tsc-agenda Issues and PRs to discuss during Technical Steering Committee meetings. label Jul 14, 2018
@targos

targos commented Jul 14, 2018

Copy link
Copy Markdown
Member Author

Sure. Added the label.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax

addaleax commented Jul 14, 2018

Copy link
Copy Markdown
Member

The change landed in v10.2.0. I suppose there is a risk to break code that is now relying on it?

Node.js 10 has had the change for almost twice as long as it didn’t have it, and we’ve done security releases since then (i.e. we expect people to use versions that have it)… not knowing much about the subject matter, I’m not sure reverting is ideal?i

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mareksrom

mareksrom commented Jul 15, 2018

Copy link
Copy Markdown

From different point of view - since 10.2.0 it was an undocumented API change, it became part of the documentation in version 10.6.0 just 10 days ago... How about projects relying on the previous documented version added in 0.6.7 released in January 2012? I think the number of them will be slighly bigger;)
I know it is not popular to do that, but SEMVER does not say could or should but MUST and we all know why (even though sometimes it doesn’t taste well:).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mhdawson mhdawson mentioned this pull request Jul 16, 2018
Node.js Foundation Technical Steering Committee (TSC) Meeting 2018-07-18 nodejs/TSC#571
Closed
@targos

targos commented Jul 18, 2018

Copy link
Copy Markdown
Member Author

Note from TSC meeting: we also need to revert the documentation change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mhdawson

mhdawson commented Jul 18, 2018

Copy link
Copy Markdown
Member

From the discussion in the TSC meeting I'm +1 to reverting.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina

mcollina commented Jul 18, 2018

Copy link
Copy Markdown
Member

This is the documentation change #21047.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Jul 18, 2018

Copy link
Copy Markdown
Member

Was there a resolution in the TSC meeting? Should the tsc-agenda label be removed? Or is it slated for next week's meeting too? /cc @targos

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina mcollina removed the tsc-agenda Issues and PRs to discuss during Technical Steering Committee meetings. label Jul 19, 2018
@mcollina

mcollina commented Jul 19, 2018

Copy link
Copy Markdown
Member

@Trott we did not have quorum. The proposed path is to revert this in Node 10, but leave it in in master.

This approach would need necessarily 2 TSC signoffs because it's a retroactive semver-major change that should not have landed in master without 2 TSC signoffs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

targos added 3 commits July 19, 2018 09:23
@targos
Revert "http: fix res emit close before user finish"
0b7537d
This reverts commit 2a9c833.
@targos
Revert "http: always emit close on req and res"
174d36d
This reverts commit 8029a24.
@targos
Revert "doc: fix HTTP req/res 'close' description"
7f6db65
This reverts commit 8ab7ea6.
@targos
targos force-pushed the revert-20611 branch from 7631312 to 7f6db65 Compare July 19, 2018 07:27
@targos

targos commented Jul 19, 2018

Copy link
Copy Markdown
Member Author

Doc change reverted

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mcollina
mcollina approved these changes Jul 19, 2018
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@targos

targos commented Jul 19, 2018

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/15944/

Is this going to break end-of-stream again?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina

mcollina commented Jul 19, 2018

Copy link
Copy Markdown
Member

@targos I do not think so. What broke eos was 8029a24.
Moreover we are testing the same logic within stream.finished here. I'm confident that we are not breaking anything if CI passes.

cc @mafintosh to confirm before landing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mafintosh

mafintosh commented Jul 19, 2018

Copy link
Copy Markdown
Member

eos is fine with this. LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mafintosh
mafintosh approved these changes Jul 19, 2018
View reviewed changes
@targos

targos commented Jul 20, 2018

Copy link
Copy Markdown
Member Author

CI is green. This needs at least one more @nodejs/tsc signoff.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MylesBorins
MylesBorins approved these changes Jul 20, 2018
View reviewed changes

@MylesBorins MylesBorins left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Rubber stamp LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ggoodman ggoodman mentioned this pull request Jul 23, 2018
Defer piping of options.payload until socket connection hapijs/wreck#223
Merged
@targos targos mentioned this pull request Jul 26, 2018
Node 10: http response.close is always triggered #21063
Closed
@mcollina

mcollina commented Jul 30, 2018

Copy link
Copy Markdown
Member

@nodejs/release @nodejs/lts I think this is ready to land.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Aug 1, 2018

Copy link
Copy Markdown
Member Author

I'm going to add this to the release proposal at #22040

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Aug 1, 2018

Copy link
Copy Markdown
Member Author

It's probably worth a sentence in the notable changes. Could someone help me write it?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ruiaraujo

ruiaraujo commented Aug 1, 2018

Copy link
Copy Markdown

Since this is already released, reverting it would just make a bad situation worse.

SEMVER was already broken once with the initial release, reverting it would just break it again.

bricss and vigneshshanmugam reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos added the tsc-agenda Issues and PRs to discuss during Technical Steering Committee meetings. label Aug 1, 2018
@targos

targos commented Aug 1, 2018

Copy link
Copy Markdown
Member Author

I've added this back to the TSC agenda to discuss in today's meeting.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mhdawson mhdawson mentioned this pull request Aug 1, 2018
Node.js Foundation Technical Steering Committee (TSC) Meeting 2018-08-01 nodejs/TSC#576
Closed
MylesBorins
MylesBorins approved these changes Aug 1, 2018
View reviewed changes

@MylesBorins MylesBorins left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

+1 reverting is the right move. This is something we should fix before LTS

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rvagg
rvagg approved these changes Aug 1, 2018
View reviewed changes
rvagg
rvagg approved these changes Aug 1, 2018
View reviewed changes
mhdawson
mhdawson approved these changes Aug 1, 2018
View reviewed changes

@mhdawson mhdawson left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
apapirovski
apapirovski approved these changes Aug 1, 2018
View reviewed changes
cjihrig
cjihrig approved these changes Aug 1, 2018
View reviewed changes
TimothyGu
TimothyGu approved these changes Aug 1, 2018
View reviewed changes

@TimothyGu TimothyGu left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I feel the conflict here is which of the following we want to make migration from easier:

  • Earlier v10.x versions
  • Versions older than v10.x

Since v10.x is an LTS version, but we haven't reached LTS stage, there's still a lot of life remaining in v10.x as folks try to update to v10.x from versions older than v10.x.

It's a sucky situation, but I'm on the side of 👍 on this PR as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@targos targos removed the tsc-agenda Issues and PRs to discuss during Technical Steering Committee meetings. label Aug 1, 2018
targos added a commit that referenced this pull request Aug 1, 2018
@targos
http: revert "http: always emit close on req and res"
8799f43
This reverts a commit that accidentally introduced a semver-major
change to Node 10 and broke userland code.
A subsequent fix to that change and documentation change are reverted
with it.

Revert "http: fix res emit close before user finish"

This reverts commit 2a9c833.

Revert "http: always emit close on req and res"

This reverts commit 8029a24.

Revert "doc: fix HTTP req/res 'close' description"

This reverts commit 8ab7ea6.

PR-URL: #21809
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
@targos

targos commented Aug 1, 2018

Copy link
Copy Markdown
Member Author

Squashed and landed in 8799f43

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos closed this Aug 1, 2018
@targos
targos deleted the revert-20611 branch August 1, 2018 15:25
@targos targos mentioned this pull request Aug 1, 2018
v10.8.0 proposal #22040
Merged
This was referenced Aug 1, 2018
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-nodejs#212
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#223
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#224
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#225
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#226
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#227
Closed
@MylesBorins MylesBorins added the dont-land-on-v8.x label Aug 17, 2018
@borisovg borisovg mentioned this pull request Dec 31, 2018
Node 10: close event is still emitted on normal HTTP response #25294
Closed
@cjihrig cjihrig mentioned this pull request Jan 8, 2019
Error tag incorrectly set (node 11) hapijs/hapi#3898
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mcollina mcollina mcollina approved these changes
@cjihrig cjihrig cjihrig approved these changes
+6 more reviewers
@apapirovski apapirovski apapirovski approved these changes
@mafintosh mafintosh mafintosh approved these changes
@rvagg rvagg rvagg approved these changes
@MylesBorins MylesBorins MylesBorins approved these changes
@TimothyGu TimothyGu TimothyGu approved these changes
@mhdawson mhdawson mhdawson approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

http Issues and PRs related to the http subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

14 participants

@targos @nodejs-github-bot @mcollina @addaleax @mareksrom @mhdawson @Trott @mafintosh @ruiaraujo @apapirovski @rvagg @MylesBorins @TimothyGu @cjihrig
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.