Use Keep-Alive by default in global agents and close idle connections in server
This PR introduces the following changes:
- Both
http.globalAgent
andhttps.globalAgent
use keep-alive by default. - Agent now parses and applies
Keep-Alive
headers received by the server (if smaller than the current agent timeout) -
http(s).Server.close
now callscloseIdleConnections
internally.
Fixes: #37184 (closed)