Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

phillipj
Copy link
Member

@phillipj phillipj commented Aug 8, 2016

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).

@phillipj phillipj 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 phillipj force-pushed the backport-doc-server-port branch from f3b887f to e78fa6c Compare August 22, 2016 08:31
@phillipj
Copy link
Member Author

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

@jasnell
Copy link
Member

jasnell commented Aug 22, 2016

LGTM

@phillipj
Copy link
Member Author

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

@jasnell
Copy link
Member

jasnell commented Aug 23, 2016

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

@cjihrig
Copy link
Contributor

cjihrig commented Aug 24, 2016

LGTM

@jasnell jasnell changed the base branch from v4.x to v4.x-staging August 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
Member

jasnell commented Aug 24, 2016

Landed in 3ecd06d

@jasnell jasnell 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>
@MylesBorins MylesBorins mentioned this pull request Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem. net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants