summaryrefslogtreecommitdiff
path: root/lib/https.js
diff options
context:
space:
mode:
authorShogun <paolo@cowtech.it>2022-04-28 12:05:55 +0200
committerShogun <paolo@cowtech.it>2022-05-03 14:04:07 +0200
commitf714a0fa6e5630aa959ee4bda10345ba81161fc5 (patch)
treec6acfe431b006553d9e55acae8e380c6cd5be271 /lib/https.js
parent6ebe5a4ff0f2f196eb8502c067da4f2cca3d241a (diff)
downloadnode-new-f714a0fa6e5630aa959ee4bda10345ba81161fc5.tar.gz
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 'lib/https.js')
-rw-r--r--lib/https.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/https.js b/lib/https.js
index 74ce93baaa..6ca3f335d0 100644
--- a/lib/https.js
+++ b/lib/https.js
@@ -87,6 +87,10 @@ function Server(opts, requestListener) {
ObjectSetPrototypeOf(Server.prototype, tls.Server.prototype);
ObjectSetPrototypeOf(Server, tls.Server);
+Server.prototype.closeAllConnections = HttpServer.prototype.closeAllConnections;
+
+Server.prototype.closeIdleConnections = HttpServer.prototype.closeIdleConnections;
+
Server.prototype.setTimeout = HttpServer.prototype.setTimeout;
/**