Skip to content

Conversation

@ZYSzys
Copy link
Member

Fixes: #29811

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

@nodejs-github-botnodejs-github-bot added the http2 Issues or PRs related to the http2 subsystem. label Oct 2, 2019
@trivikr
Copy link
Member

cc @nodejs/http2

Copy link
Member

@mcollinamcollina left a comment

Choose a reason for hiding this comment

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

LGTM. We should probably update the docs as well.

switch(protocol){
case'http:':
socket=net.connect(options.port||port,options.host||host);
socket=net.connect({port, host, ...options});
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it intentional that options.host and options.port would now take precedence over those same fields in authority?

Copy link
MemberAuthor

@ZYSzysZYSzysOct 5, 2019

Choose a reason for hiding this comment

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

Is it intentional that options.host and options.port would now take precedence over those same fields in authority

I think yes, however this behavior wasn't changed here but in #28584.

@nodejs-github-bot
Copy link
Collaborator

@ZYSzysZYSzys added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 7, 2019
@nodejs-github-bot
Copy link
Collaborator

ZYSzys added a commit that referenced this pull request Oct 7, 2019
PR-URL: #29816Fixes: #29811 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
@ZYSzys
Copy link
MemberAuthor

Landed in 95266db.

@ZYSzysZYSzys closed this Oct 7, 2019
@cjihrigcjihrig mentioned this pull request Oct 7, 2019
3 tasks
BridgeAR pushed a commit that referenced this pull request Oct 9, 2019
PR-URL: #29816Fixes: #29811 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
@BridgeARBridgeAR mentioned this pull request Oct 10, 2019
@ZYSzysZYSzys deleted the http2-connect branch October 20, 2019 06:07
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.http2Issues or PRs related to the http2 subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

http2.connect with url starting with "http://" does not pass options to net.connect

7 participants

@ZYSzys@trivikr@nodejs-github-bot@mcollina@jasnell@cjihrig@gengjiawen