Skip to content

Conversation

@ronag
Copy link
Member

@ronagronag commented Aug 8, 2019

Implements cork/uncork on OutgoingMessage to make it more streamlike.

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

@nodejs-github-botnodejs-github-bot added the http Issues or PRs related to the http subsystem. label Aug 8, 2019
@ronagronag mentioned this pull request Aug 8, 2019
9 tasks
@ronagronagforce-pushed the http-outgoing-cork branch 3 times, most recently from 961eefa to 0ddf57bCompareAugust 8, 2019 19:22
@ronag
Copy link
MemberAuthor

ronag commented Aug 8, 2019

Not sure exactly how corking a http2 stream works. Would that cork other responses as well? Or does the multiplexing happen on a lower level?

@ronagronagforce-pushed the http-outgoing-cork branch 3 times, most recently from 92fa16b to d54f0a5CompareAugust 9, 2019 16:00
@jasnell
Copy link
Member

multiplexing happens on the native layer. corking an Http2Stream has no impact on any other Http2Stream instances.

Copy link
Member

@addaleaxaddaleax 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 this needs a rebase

@ronagronagforce-pushed the http-outgoing-cork branch 3 times, most recently from 650eeab to c650a63CompareNovember 3, 2019 22:27
@ronagronagforce-pushed the http-outgoing-cork branch from c650a63 to 796f541CompareNovember 4, 2019 08:59
@nodejs-github-bot
Copy link
Collaborator

@ronag
Copy link
MemberAuthor

ronag commented Nov 4, 2019

Sorry, there is a test failure. Right now I can't build node due to:

No Xcode or CLT version detected!

I'll fix this once I've figured out how to build Node again.

@ronag
Copy link
MemberAuthor

ronag commented Nov 4, 2019

@addaleax: It might be a good idea to merge this first #29012

@addaleax
Copy link
Member

@addaleax: It might be a good idea to merge this first #29012

@ronag Done, but now this needs a rebase again 😅

@ronagronagforce-pushed the http-outgoing-cork branch from 796f541 to 7290bf1CompareNovember 6, 2019 23:44
@ronag
Copy link
MemberAuthor

ronag commented Nov 6, 2019

rebased

@ronag
Copy link
MemberAuthor

@Trott failed on compile V8?

@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

Trott commented Nov 12, 2019

Test failures in test-http-response-cork:

NaN !== undefined at Server.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux/nodes/alpine-latest-x64/test/parallel/test-http-response-cork.js:15:10)

@ronag
Copy link
MemberAuthor

ronag commented Nov 12, 2019

Hm, that was a minor bug in Duplex. Resolved as well. @Trott

@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

@nodejs/http This could use more reviews.

Copy link
Member

@addaleaxaddaleax 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 I’d put the _stream_duplex.js changes in a separate commit (while landing)

addaleax added a commit that referenced this pull request Nov 13, 2019
addaleax pushed a commit that referenced this pull request Nov 13, 2019
PR-URL: #29053 Reviewed-By: Anna Henningsen <[email protected]>
@addaleax
Copy link
Member

Landed in dc7b5fcf3ea4e9, thank you for remaining committed to getting this done :)

MylesBorins pushed a commit that referenced this pull request Nov 17, 2019
MylesBorins pushed a commit that referenced this pull request Nov 17, 2019
PR-URL: #29053 Reviewed-By: Anna Henningsen <[email protected]>
@BridgeARBridgeAR mentioned this pull request Nov 19, 2019
@targostargos added the semver-minor PRs that contain new features and should be released in the next minor version. label Dec 1, 2019
targos pushed a commit that referenced this pull request Jan 13, 2020
targos pushed a commit that referenced this pull request Jan 13, 2020
PR-URL: #29053 Reviewed-By: Anna Henningsen <[email protected]>
@targostargos mentioned this pull request Jan 15, 2020
BethGriggs pushed a commit that referenced this pull request Feb 6, 2020
BethGriggs pushed a commit that referenced this pull request Feb 6, 2020
PR-URL: #29053 Reviewed-By: Anna Henningsen <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Feb 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

httpIssues or PRs related to the http subsystem.semver-minorPRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@ronag@jasnell@nodejs-github-bot@addaleax@Trott@mscdex@targos