Skip to content

http: use 0 as default for requests limit - #40192

Closed
fatal10110 wants to merge 2 commits into
nodejs:masterfrom
fatal10110:default_max_requests
Closed

http: use 0 as default for requests limit#40192
fatal10110 wants to merge 2 commits into
nodejs:masterfrom
fatal10110:default_max_requests

Conversation

@fatal10110

Copy link
Copy Markdown
Contributor

closes #40190

@nodejs-github-bot nodejs-github-bot added http Issues and PRs related to the http subsystem. needs-ci PRs that need a full CI run. labels Sep 23, 2021

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add a test?

@fatal10110

Copy link
Copy Markdown
Contributor Author

I think default value is tested here already
https://github.com/nodejs/node/blob/master/test/parallel/test-http-keep-alive.js

I can add a test that tests a "null" value

@fatal10110

Copy link
Copy Markdown
Contributor Author

I think default value is tested here already

Nvm, I was wrong, im not sure what is tested there, I will write my own test

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@targos targos added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 26, 2021

@XadillaX XadillaX left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Major or patch?

@mcollina

Copy link
Copy Markdown
Member

I would go with patch, this a bug/oversight.

mcollina pushed a commit that referenced this pull request Sep 27, 2021
PR-URL: #40192
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
@mcollina

Copy link
Copy Markdown
Member

Landed in 44b173e

@mcollina mcollina closed this Sep 27, 2021
targos pushed a commit that referenced this pull request Oct 4, 2021
PR-URL: #40192
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. http Issues and PRs related to the http subsystem. needs-ci PRs that need a full CI run.

6 participants