Skip to content

Backport doc: server.listen() random port - #8025

Closed
phillipj wants to merge 1 commit into
nodejs:v4.x-stagingfrom
phillipj:backport-doc-server-port
Closed

Backport doc: server.listen() random port#8025
phillipj wants to merge 1 commit into
nodejs:v4.x-stagingfrom
phillipj:backport-doc-server-port

Conversation

@phillipj

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

Backported from 57e95d9 / #7976.

Minor rewording related to making a server listen to a random port, and added how to retrieve which port was randomly chosen by the OS.

Also changed documented server.listen() signature as it does in fact not require port to be provided (lib/net.js#L1339).

@phillipjphillipj added http Issues or PRs related to the http subsystem. doc Issues and PRs related to the documentations. net Issues and PRs related to the net subsystem. v4.x labels Aug 8, 2016
Minor rewording related to making a server listen to a random port,
and added how to retrieve which port was randomly chosen by the OS.
Also changed documented `server.listen()` signature as it does in fact
not require `port` to be provided.
PR-URL: nodejs#7976
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@phillipj
phillipjforce-pushed the backport-doc-server-port branch from f3b887f to e78fa6cCompareAugust 22, 2016 08:31
@phillipj

Copy link
Copy Markdown
MemberAuthor

@jasnell@cjihrig any of you have the time to have a look at this, since you reviewed the original PR #7976?

@jasnell

Copy link
Copy Markdown
Member

LGTM

@phillipj

Copy link
Copy Markdown
MemberAuthor

@nodejs/lts is one of you supposed to merge this or should I?

@jasnell

Copy link
Copy Markdown
Member

I'd like @cjihrig to sign off on it also, then I can land.

@cjihrig

Copy link
Copy Markdown
Contributor

LGTM

@jasnell
jasnell changed the base branch from v4.x to v4.x-stagingAugust 24, 2016 14:06
jasnell pushed a commit that referenced this pull request Aug 24, 2016
Minor rewording related to making a server listen to a random port,
and added how to retrieve which port was randomly chosen by the OS.
Also changed documented `server.listen()` signature as it does in fact
not require `port` to be provided.
PR-URL: #8025
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@jasnell

Copy link
Copy Markdown
Member

Landed in 3ecd06d

@jasnelljasnell closed this Aug 24, 2016
@phillipj
phillipj deleted the backport-doc-server-port branch August 25, 2016 12:24
MylesBorins pushed a commit that referenced this pull request Sep 28, 2016
Minor rewording related to making a server listen to a random port,
and added how to retrieve which port was randomly chosen by the OS.
Also changed documented `server.listen()` signature as it does in fact
not require `port` to be provided.
PR-URL: #8025
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
rvagg pushed a commit that referenced this pull request Oct 18, 2016
Minor rewording related to making a server listen to a random port,
and added how to retrieve which port was randomly chosen by the OS.
Also changed documented `server.listen()` signature as it does in fact
not require `port` to be provided.
PR-URL: #8025
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this pull request Oct 26, 2016
Minor rewording related to making a server listen to a random port,
and added how to retrieve which port was randomly chosen by the OS.
Also changed documented `server.listen()` signature as it does in fact
not require `port` to be provided.
PR-URL: #8025
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Oct 26, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.netIssues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@phillipj@jasnell@cjihrig