Skip to content

http: added closeAllConnections and closeIdleConnections to http.server#42812

Closed
ShogunPanda wants to merge 6 commits intonodejs:masterfrom
ShogunPanda:close-all-connections
Closed

http: added closeAllConnections and closeIdleConnections to http.server#42812
ShogunPanda wants to merge 6 commits intonodejs:masterfrom
ShogunPanda:close-all-connections

Conversation

@ShogunPanda
Copy link
Copy Markdown
Contributor

@ShogunPanda ShogunPanda commented Apr 21, 2022

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 #41578.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http Issues or PRs related to the http subsystem. notable-change PRs with changes that should be highlighted in changelogs. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to force close persistent connections

10 participants