Closed
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 ✔️)