GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: more test coverage for maxConnections by Trott · Pull Request #1855 · nodejs/node

Conversation

@Trott

@Trott Trott commented May 31, 2015

Copy link
Copy Markdown
Member

If the server is not accepting connections because maxConnections
is exceeded, the server should start accepting connections again
when a connection closes.

Eliminates a TODO comment. ref: #264

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mscdex mscdex added test Issues and PRs related to Node.js core tests and test infrastructure. net Issues and PRs related to the net subsystem. labels May 31, 2015
brendanashworth
brendanashworth reviewed May 31, 2015
View reviewed changes
Comment thread test/parallel/test-net-server-max-connections-close-makes-more-available.js Outdated

@brendanashworth brendanashworth May 31, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

style: space between { }

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Trott
Trott force-pushed the maxconnect branch from f13c553 to f5f0b93 Compare May 31, 2015 22:39
@Trott

Trott commented May 31, 2015

Copy link
Copy Markdown
Member Author

Updated the branch to conform to the style comments from @brendanashworth.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

brendanashworth
brendanashworth reviewed Jun 1, 2015
View reviewed changes
Comment thread test/parallel/test-net-server-max-connections-close-makes-more-available.js Outdated

@brendanashworth brendanashworth Jun 1, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

the data.toString is unnecessary here

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brendanashworth

brendanashworth commented Jun 1, 2015

Copy link
Copy Markdown
Contributor

Thanks for adding this test, it was really bad that something like this was untested beforehand.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott
Trott force-pushed the maxconnect branch from f5f0b93 to 82bb18c Compare June 2, 2015 05:25
@Trott

Trott commented Jun 2, 2015

Copy link
Copy Markdown
Member Author

Updated commit based on all comments from @brendanashworth

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis
bnoordhuis force-pushed the master branch from 311c3e4 to b926718 Compare June 2, 2015 17:25
brendanashworth
brendanashworth reviewed Jun 3, 2015
View reviewed changes
Comment thread test/parallel/test-net-server-max-connections-close-makes-more-available.js Outdated

@brendanashworth brendanashworth Jun 3, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

style: no space after function, so function() {

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brendanashworth

brendanashworth commented Jun 3, 2015

Copy link
Copy Markdown
Contributor

Sorry I missed the little style nitpick. Other than that, this LGTM.

edit: good use of promises btw 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott
test: more test coverage for maxConnections
b8ed63c
If the server is not accepting connections because maxConnections
is exceeded, the server should start accepting connections again
when a connection closes.
@Trott
Trott force-pushed the maxconnect branch from 82bb18c to b8ed63c Compare June 3, 2015 03:51
@Trott

Trott commented Jun 3, 2015

Copy link
Copy Markdown
Member Author

OK, nit picked, new commit pushed!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

brendanashworth pushed a commit that referenced this pull request Jun 3, 2015
@Trott @brendanashworth
test: more test coverage for maxConnections
bd99e8d
If the server is not accepting connections because maxConnections
is exceeded, the server should start accepting connections again
when a connection closes.

PR-URL: #1855
Reviewed-By: Brendan Ashworth <[email protected]>
@brendanashworth

brendanashworth commented Jun 3, 2015

Copy link
Copy Markdown
Contributor

Thanks, landed in bd99e8d.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brendanashworth brendanashworth closed this Jun 3, 2015
@bnoordhuis bnoordhuis mentioned this pull request Jun 3, 2015
test: fix net-server-max-connections-close-makes-more-available #1881
Closed
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
@Trott @andrewdeandrade
test: more test coverage for maxConnections
ae03f12
If the server is not accepting connections because maxConnections
is exceeded, the server should start accepting connections again
when a connection closes.

PR-URL: nodejs/node#1855
Reviewed-By: Brendan Ashworth <[email protected]>
@cjihrig cjihrig mentioned this pull request Jun 4, 2015
[libuv] upgrade to 1.6.0 #1889
Closed
@rvagg rvagg mentioned this pull request Jun 11, 2015
Release proposal: 2.3.0 #1939
Closed
@Trott
Trott deleted the maxconnect branch October 14, 2021 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

net Issues and PRs related to the net subsystem. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Trott @brendanashworth @mscdex
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.