Skip to content

http: added closeAllConnections and closeIdleConnections to http.server

This PR introduces two new methods on http.Server and https.Server:

  1. closeAllConnections(): Closes all sockets connected to the server.
  2. closeIdleConnections(): Closes all sockets connected to the server which are not actively sending a request or waiting for a response.

Fixes https://github.com/nodejs/node/issues/41578.

Merge request reports

Loading