-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.
Description
Affected URL(s)
https://nodejs.org/api/http.html#new-agentoptions
Description of the problem
The docs state:
The default http.globalAgent that is used by http.request() has all of these values set to their respective defaults.
Whereas globalAgent is built with
module.exports = {
Agent,
globalAgent: new Agent({ keepAlive: true, scheduling: 'lifo', timeout: 5000 }),
};the only default there is scheduling: 'lifo'; keepAlive: true and timeout: 5000 are overrides.
(the history part of the globalAgent docs states "The agent now uses HTTP Keep-Alive by default." so that part is ok ✔️)
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.