Skip to content

Use Keep-Alive by default in global agents and close idle connections in server

This PR introduces the following changes:

  1. Both http.globalAgent and https.globalAgent use keep-alive by default.
  2. Agent now parses and applies Keep-Alive headers received by the server (if smaller than the current agent timeout)
  3. http(s).Server.close now calls closeIdleConnections internally.

Fixes: #37184 (closed)

Merge request reports

Loading