diff options
author | Shogun <paolo@cowtech.it> | 2022-04-28 13:05:55 +0300 |
---|---|---|
committer | RafaelGSS <rafael.nunu@hotmail.com> | 2022-05-10 15:13:17 +0300 |
commit | 2f192c4be07312cf616f757b5d2e5543063bf246 (patch) | |
tree | 06e61b823fc66527e7538e0470776494857737f4 /doc/api/http.md | |
parent | 3ab30860088727668ab3950d284e6e8937d23ed8 (diff) |
http: added connection closing methods
Fixes: https://github.com/nodejs/node/issues/41578
PR-URL: https://github.com/nodejs/node/pull/42812
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/http.md')
-rw-r--r-- | doc/api/http.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index 543a25dfdf8..fd15d16074a 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1453,6 +1453,23 @@ added: v0.1.90 Stops the server from accepting new connections. See [`net.Server.close()`][]. +### `server.closeAllConnections()` + +<!-- YAML +added: REPLACEME +--> + +Closes all connections connected to this server. + +### `server.closeIdleConnections()` + +<!-- YAML +added: REPLACEME +--> + +Closes all connections connected to this server which are not sending a request +or waiting for a response. + ### `server.headersTimeout` <!-- YAML |