Skip to content

Conversation

@ronag
Copy link
Member

@ronag ronag commented Sep 24, 2017

Emit close event after all other events.

Refs: #15270

@nodejs-github-bot nodejs-github-bot added the http Issues or PRs related to the http subsystem. label Sep 24, 2017
@ronag ronag changed the title fix: emit close last http - emit close last Sep 24, 2017
Copy link
Member

@lpinca lpinca left a comment

Choose a reason for hiding this comment

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

LGTM but it needs a test.

@addaleax
Copy link
Member

@mcollina I vaguely remember you having a similar PR a while back? Can you take a look?

@jasnell jasnell requested a review from mcollina September 25, 2017 16:07
@mcollina
Copy link
Member

I think this is ok, but it needs a test and a CITGM run.

We should probably also verify manually if pump still works.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

needs a test

@BridgeAR
Copy link
Member

Ping @ronag

@lpinca
Copy link
Member

lpinca commented Sep 28, 2017

@ronag I pushed a commit with a test to your branch so we can move this forward. Hope you don't mind.

@lpinca
Copy link
Member

lpinca commented Sep 28, 2017

Copy link
Member

Choose a reason for hiding this comment

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

Moving the req.on('close' ... line out of the req.on('error' ... would make this slightly better. Then just add a boolean that is set in on('error') and checked in on('close')

Copy link
Member

Choose a reason for hiding this comment

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

Done.

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

LGTM. pinging @mcollina for another review.

@lpinca
Copy link
Member

lpinca commented Oct 16, 2017

Ping @mcollina

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

@mcollina
Copy link
Member

@jasnell
Copy link
Member

jasnell commented Oct 16, 2017

CI failures look unrelated.

@mcollina
Copy link
Member

@refack can you please check CITGM output?

@mcollina
Copy link
Member

@mcollina
Copy link
Member

CITGM should be green (as far as I understand it). Let me land.

@mcollina mcollina added dont-land-on-v4.x baking-for-lts PRs that need to wait before landing in a LTS release. labels Oct 18, 2017
@mcollina
Copy link
Member

Out of pure prudence, I'm flagging this as dont-land-on-X and as "baking-for-lts". I would like to have this in 9 for a while before having it in 8 or lower.

@mcollina mcollina self-assigned this Oct 18, 2017
@mcollina
Copy link
Member

Landed as 5d99a9b

@mcollina mcollina closed this Oct 18, 2017
mcollina pushed a commit that referenced this pull request Oct 18, 2017
Emit close event after all other events in the client, e.g.
error will be emitted before close.

PR-URL: #15588
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@apapirovski
Copy link
Contributor

@ronag Congrats on landing your first commit in Node.js core and becoming a Contributor!

addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 26, 2017
Emit close event after all other events in the client, e.g.
error will be emitted before close.

PR-URL: nodejs/node#15588
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Dec 7, 2017
Emit close event after all other events in the client, e.g.
error will be emitted before close.

PR-URL: nodejs/node#15588
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@MylesBorins MylesBorins added baking-for-lts PRs that need to wait before landing in a LTS release. and removed baking-for-lts PRs that need to wait before landing in a LTS release. dont-land-on-v8.x labels Aug 17, 2018
@MylesBorins
Copy link
Contributor

@mcollina should we consider this for 8.x?

@mcollina
Copy link
Member

no, this should not be backportes

@MylesBorins MylesBorins added dont-land-on-v8.x and removed baking-for-lts PRs that need to wait before landing in a LTS release. labels Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http Issues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants