http: start connections checking interval on listen

Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/48611
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Paolo InsognaandLuigi Pinca authored and Michaël Zasso committed 2023-11-26 20:32:25 +01:00
1 parent cb43717c97
commit 8874b2e11d
4 files changed
+71 -6

No files matched your search

+2 -1
View File
@@ -86,8 +86,9 @@ function Server(opts, requestListener) {
this.timeout = 0;
this.maxHeadersCount = null;
setupConnectionsTracking(this);
this.on('listening', setupConnectionsTracking);
}
ObjectSetPrototypeOf(Server.prototype, tls.Server.prototype);
ObjectSetPrototypeOf(Server, tls.Server);