http: added closeAllConnections and closeIdleConnections to http.server
This PR introduces two new methods on http.Server
and https.Server
:
-
closeAllConnections()
: Closes all sockets connected to the server. -
closeIdleConnections()
: Closes all sockets connected to the server which are not actively sending a request or waiting for a response.