mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
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>
This commit is contained in:
parent
6ebe5a4ff0
commit
f714a0fa6e
9 changed files with 360 additions and 13 deletions
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue